[asterisk-users] #!/usr/bin/php -q unknown command

Muhammad mohammad.ghazavi at gmail.com
Wed Jan 30 00:28:32 CST 2013


Hi,

I used elastix with asterisk 1.8
when I run my AGI code, cli give me theses errors:

<SIP/147-00000098>AGI Tx >> agi_callingpres: 0
<SIP/147-00000098>AGI Tx >> agi_callingani2: 0
<SIP/147-00000098>AGI Tx >> agi_callington: 0
<SIP/147-00000098>AGI Tx >> agi_callingtns: 0
<SIP/147-00000098>AGI Tx >> agi_dnid: unknown
<SIP/147-00000098>AGI Tx >> agi_rdnis: unknown
<SIP/147-00000098>AGI Tx >> agi_context: from-internal
<SIP/147-00000098>AGI Tx >> agi_extension: 9099999999
<SIP/147-00000098>AGI Tx >> agi_priority: 2
<SIP/147-00000098>AGI Tx >> agi_enhanced: 0.0
<SIP/147-00000098>AGI Tx >> agi_accountcode:
<SIP/147-00000098>AGI Tx >> agi_threadid: -1226703984
<SIP/147-00000098>AGI Tx >> agi_arg_1:
<SIP/147-00000098>AGI Tx >>
<SIP/147-00000098>AGI Rx << Usage: php [options] [-f] <file> [--] [args...]
<SIP/147-00000098>AGI Tx >> 510 Invalid or unknown command
<SIP/147-00000098>AGI Rx <<        php [options] -r <code> [--] [args...]
<SIP/147-00000098>AGI Tx >> 510 Invalid or unknown command
<SIP/147-00000098>AGI Rx <<        php [options] [-B <begin_code>] -R
<code> [-E <end_code>] [--] [args...]
....
.
.
.
.
-- <SIP/147-00000098>AGI Script myAGI.php completed, returning 0


I run my php script in bash linux, it seems it is not work with -q parameter

what is problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130130/747a99f7/attachment.htm>


More information about the asterisk-users mailing list