Displaying 2 results from an estimated 2 matches for "maxreach".
Did you mean:
maceach
2010 Jun 05
1
Problem with GROUP()
...GROUP() and GROUP_COUNT() for the first
time... Having some troubles.
This the dialplan (using a sub) :
exten => s,n,Set(_custID=${custID})
exten => s,n,GROUP(${custID})
exten => s,n,NoOp(grouppcount = GROUP_COUNT(${custID}))
exten => s,n,GoToIf($[ ${GROUP_COUNT(${custID})} > 2 ]?maxreached)
The CLI shows :
[Jun 5 16:06:26] -- Executing [s at sub-settings:4]
Set("IAX2/testlocal-2669", "_custID=40") in new stack
[Jun 5 16:06:26] WARNING[10491]: pbx.c:1849 pbx_extension_helper: No
application 'GROUP' for extension (sub-settings, s, 5)
[Jun 5 16:0...
2009 Mar 01
1
php agi and get_data errors.
...t_data('beep', 60000, 13);
printdebug($result);
$badge = str_replace('*', '.', $result['result']);
$agi->conlog("[$tries] Badge: $badge");
if (strlen($badge) != 13) {
if (($tries++) >= 3){
$agi->exec('PLAYBACK',$audiofiles['maxreached']);
$agi->hangup();
exit();
}
$agi->exec('PLAYBACK',$audiofiles['invalidbadge']);
} else {
$agi->exec('PLAYBACK',$audiofiles['thanks']);
$isokbadge = true;
}
} while ($isokbadge == false);
Another error is that after the first get_da...