is possible make phone call using php , voice modem?
php run on local server (xampp).
i have found solutions asp.net (using 3rd party api , software fine imo), php required project.
you said 3rd party okay, this might interesting you.
please note need signup account sonetel in order use api. while free, making phone calls cost few cents.
here's example code use api. api initiating 2 phone calls, 1 , 1 person calling. first ring number provided first , if call picked up, ring second number , connects both together.
$url='https://call.sonetel.com'; $data = array('email' => 'abc@xyz.com','password' => 'xxxxxxxxx','call1' => 'xxxxxxxxxx','call2' => 'xxxxxxxxxxxxx'); $data_to_send = http_build_query($data); $ch = curl_init($url); curl_setopt($ch, curlopt_customrequest, "post"); curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch, curlopt_postfields,$data_to_send); curl_setopt($ch, curlopt_followlocation, 1); curl_setopt($ch, curlopt_ssl_verifypeer, false); curl_setopt($ch, curlopt_ssl_verifyhost, false); curl_setopt($ch, curlopt_httpheader, array('content-type: application/x-www-form-urlencoded')); $result = curl_exec($ch);
Comments
Post a Comment