[asterisk-users] php agi trixbox help
blackwater dev
blackwaterdev at gmail.com
Wed Dec 27 06:39:04 MST 2006
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??
----php code------------
#!/usr/local/bin/php -q
<?php
set_time_limit(30);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
$cid = $agi->parse_callerid();
$agi->text2wav("Hello, {$cid['name']}. Let's enter some text.");
$text = $agi->text_input('UPPERCASE');
$agi->text2wav("You entered $text");
$agi->text2wav('Goodbye');
$agi->hangup();
?>
------extensions_custom.php------------
exten => 311,1,Answer
exten => 311,2 Wait(1)
exten => 311,3,DigitTimeout(7)
exten => 311,4,ResponseTimeout(10)
exten => 311,5,AGI(input.php)
------CLI output ----------------------
-- Executing Answer("SIP/200-09b20488", "") in new stack
== Spawn extension (from-internal, 311, 2) exited non-zero on
'SIP/200-09b20488'
-- Executing Macro("SIP/200-09b20488", "hangupcall") in new stack
-- Executing ResetCDR("SIP/200-09b20488", "w") in new stack
-- Executing NoCDR("SIP/200-09b20488", "") in new stack
-- Executing Wait("SIP/200-09b20488", "5") in new stack
-- Executing Hangup("SIP/200-09b20488", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on
'SIP/200-09b20488' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on
'SIP/200-09b20488'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061227/a6bf5f36/attachment.htm
More information about the asterisk-users
mailing list