Is it possible to make phone call using PHP and voice modem?
PHP will run on local server (XAMPP).
I have found some solutions for asp.net (using 3rd party api and software which is fine IMO), but PHP is required for this project.
You said a 3rd Party is okay, so this might be interesting for you.
Please note that you will need to signup for an account with Sonetel in order to use the api. While this is free, making phone calls cost few cents.
Here's an example code to use their api. The api is initiating two phone calls, one to you and one to the person you are calling. It will first ring the number provided first and if this call is picked up, it will ring the second number and then 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);