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

Zyumbilev, Peter peter at aboutsupport.com
Wed Jan 30 00:50:27 CST 2013


from ssh(console) run "which php"
it should give you path where it is installed.

Peter

On 30/01/2013 08:28, Muhammad wrote:
> 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?
> 
> 
> 
> 
> 
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



More information about the asterisk-users mailing list