Displaying 1 result from an estimated 1 matches for "prendo".
Did you mean:
aprendo
2009 Mar 01
1
php agi and get_data errors.
...h the digits, but the result is
always an empty data.
(code=200, result=1, data= '').
Here is the code:
set_time_limit(99999999999999);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
function printdebug($a) {
global $agi;
$agi->conlog(print_r($a, true));
}
// Prendo Badge
$isokbadge = false;
$tries = 1;
do {
$result = array();
$agi->exec('PLAYBACK',$audiofiles['insertbadge']);
$result = $agi->get_data('beep', 60000, 13);
printdebug($result);
$badge = str_replace('*', '.', $result['result']);
$agi...