toshog
March 11, 2009, 4:47am
1
hi all…
i have problem with php script using the AGI interface…
if i use the php script on the command line it work perfect. usually it takes about 15 seconds to execute.
if i us it within the dial plan i returns 0 right away with the debug below which doesn’t really help…
why would that happened? where do i look?
thanks…
toshog
March 11, 2009, 4:55am
2
sorry… forgot the debug… look at line
-- AGI Script Executing Application: (SayAlpha) Options: ((null))
that null should be the value return by the script… i don’t understand now…
and the script does work when used on the command line.
-- Launched AGI Script /var/lib/asterisk/agi-bin/tests/test02.php
AGI Tx >> agi_request: tests/test02.php
AGI Tx >> agi_channel: SIP/xds72moF91-b4b03260
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1236746034.56
AGI Tx >> agi_callerid: XXXXXXXXXX
AGI Tx >> agi_calleridname:
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: XXXXXXXXXX
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: tests
AGI Tx >> agi_extension: s
AGI Tx >> agi_priority: 4
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << LI>
AGI Tx >> 510 Invalid or unknown command
AGI Rx << LI>
AGI Tx >> 510 Invalid or unknown command
AGI Rx << LI>
AGI Tx >> 510 Invalid or unknown command
AGI Rx <<
AGI Tx >> 510 Invalid or unknown command
AGI Rx << EXEC SayAlpha
– AGI Script Executing Application: (SayAlpha) Options: ((null))
AGI Tx >> 200 result=0
– AGI Script tests/test02.php completed, returning 0
toshog
March 11, 2009, 6:59am
3
nevermind… forgot how picky asterisk is… it’s been awhile…
anyway… anybody has any suggestions for my other questions?
thanks…