same=>n,ExecIf($["${CALLERID(NUM)}"= "18092373831"]?Playback(im-sorry))
same=>n,ExecIf($["${CALLERID(NUM)}"= "18092373831"]?hangup())
same=>n,ExecIf($["${CALLERID(NUM)}"= "18092373831"]?Playback(im-sorry))
same=>n,ExecIf($["${CALLERID(NUM)}"= "18092373831"]?hangup())
#!/usr/bin/php -q
<?php
error_reporting(E_ALL);
set_time_limit(30);
require_once('/root/phpagi-svn/phpagi.php');
$agi = new AGI();
$agi->answer();
$result = $agi->get_data('welcome',8000 ,3);
$keys = $result['result'];
$agi->verbose(" Testing $keys",1);
$agi->say_digits($keys);
exit();
?>
[ivr-dial] | |
exten=>100,1,Answer() | |
same=>n,Set(path=/var/www/html/p1/audio/) | |
same=>n,Read(rec,/var/www/html/p1/audio/rec-option,1) | |
same=>n,Noop( ...${rec}...) | |
same => n,GotoIf(${ISNULL(${rec})}=1]?1) | |
same => n,GotoIf($[${rec}=1]?dest) | |
same => n,GotoIf($[${rec}=2]?dest) | |
same=>n,Playback(invalid) | |
same=>n,Goto(1) | |
same=>n(dest),Read(dest,/var/www/html/p1/audio/dest,10) | |
same => n,GotoIf(${ISNULL(${dest})}=1]?dest) | |
same=>n,Noop( ...${rec}...) | |
same => n,GotoIf($[${rec}=1]?rec) | |
same => n,GotoIf($[${rec}=2]?norec) | |
same=>n,Playback(invalid) | |
same=>n,Goto(1) | |
same=>n(rec),Mixmonitor(${path}${STRFTIME(${EPOCH},,%Y-%m-%d_%H-%M-%S)}-${dest}_${type}_${src}.wav) | |
same=>n,Dial(SIP/callcentric/1${dest}) | |
same=>n,hangup() | |
same=>n(norec),Noop() | |
same=>n,Dial(SIP/callcentric/1${dest}) | |
same=>n,hangup() | |
[inventory]
exten=>_x.,1,Answer()
same=>n,Read(q,/var/www/html/inventory/audio/inst)
same => n,GotoIf(${ISNULL(${q})} =1]?1)
same=>n,Saydigits(${q})
same=>n,Agi(/var/www/html/inventory/query.php,${q})
same=>n,Playback(${stock})
same=>n,read(c,/var/www/html/inventory/audio/goback,1)
same => n,GotoIf($[${c}=1]?1)
same=>n,Playback(goodbye)
same=>n,hangup()
https://wiki.asterisk.org/wiki/display/AST/Configuring+chan_sip+for+Presence+Subscriptions