Get DTMF tones from the user and say the digits
#!/usr/local/bin/php -q
<?php
require('phpagi.php');
$agi->text2wav("Hello, {$cid['name']}.");
do
{
$agi->text2wav('Enter some numbers and then press the pound key. Press 1 1 1 followed by the pound key to quit.');
$result =
$agi->get_data('beep', 3000, 20);
$keys = $result['result'];
} while($keys != '111');
?>
Documentation generated on Thu, 30 Sep 2010 02:22:03 -0700 by phpDocumentor 1.4.2