I have this code which was taken from the phpagi project page along with the following in extensions_conf and the output from the asterisk CLI. When I call the 311 extension, I does nothing then hangs up. What am I doing wrong??
<br><br>----php code------------<br><br>#!/usr/local/bin/php -q<br><?php<br> set_time_limit(30);<br> require('phpagi.php');<br><br> $agi = new AGI();<br> $agi->answer();<br> $cid = $agi->parse_callerid();
<br> $agi->text2wav("Hello, {$cid['name']}. Let's enter some text.");<br> $text = $agi->text_input('UPPERCASE');<br> $agi->text2wav("You entered $text");<br> $agi->text2wav('Goodbye');
<br> $agi->hangup();<br>?><br><br>------extensions_custom.php------------<br>exten => 311,1,Answer<br>exten => 311,2 Wait(1)<br>exten => 311,3,DigitTimeout(7)<br>exten => 311,4,ResponseTimeout(10)<br>exten => 311,5,AGI(
input.php)<br><br>------CLI output ----------------------<br> -- Executing Answer("SIP/200-09b20488", "") in new stack<br> == Spawn extension (from-internal, 311, 2) exited non-zero on 'SIP/200-09b20488'
<br> -- Executing Macro("SIP/200-09b20488", "hangupcall") in new stack<br> -- Executing ResetCDR("SIP/200-09b20488", "w") in new stack<br> -- Executing NoCDR("SIP/200-09b20488", "") in new stack
<br> -- Executing Wait("SIP/200-09b20488", "5") in new stack<br> -- Executing Hangup("SIP/200-09b20488", "") in new stack<br> == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/200-09b20488' in macro 'hangupcall'
<br> == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/200-09b20488'