PHP phone call with voice modem?
Moderator: General Moderators
PHP phone call with voice modem?
Hi there,
is it possible to make a phone call using php and a voice modem?
The php script should connect by a voice modem, and play a wav file or something like this. It would be perfect if the php script also alows acknowledgements like: "If you carry about it please press 1", "If you don't have time, please press 2" and so on...
Exists a class for this application?
Greets from Switzerland
is it possible to make a phone call using php and a voice modem?
The php script should connect by a voice modem, and play a wav file or something like this. It would be perfect if the php script also alows acknowledgements like: "If you carry about it please press 1", "If you don't have time, please press 2" and so on...
Exists a class for this application?
Greets from Switzerland
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
well, there is something like http://www.voicexml.org.
you could use PHP to generate/interprete the xml that is needed for such an IVR
you could use PHP to generate/interprete the xml that is needed for such an IVR
Well, I don't see why PHP couldn't at least make the call since you can open serial ports with it. As for understanding responses, it would take an extension to a sound lib of some sort no? If I'm not mistaken, there is an EAsound extension for PHP. I could be wrong. Check PECL.
Another possibility may be other sound command line tools.
But oh well...., just thinkin' out my butt.

Another possibility may be other sound command line tools.
But oh well...., just thinkin' out my butt.
Ok, I've tried to find something to open a serial connection to a voice modem.
This is all I've found:
But how can i dial a Number? Which string do i need? And is this String depending on the type of the Modem?
This is all I've found:
Code: Select all
<?php
`mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=off`;
$fp = fopen ("COM1:", "w+");
if (!$fp) {
echo "Uh-oh. Port not opened.";
} else {
$e = chr(27);
$string = $e . "A" . $e . "H300";
$string .= $e . "V100" . $e . "XL1SATO";
$string .= $e . "Q1" . $e . "Z";
echo $string;
fputs ($fp, $string );
fclose ($fp);
}
?>Code: Select all
ATDnumber_to_dial