[asterisk-users] Compatibilty between agi for asterisk 13.8.0 and php5.6

Michael L. Young myoung at acsacc.com
Wed May 4 08:20:54 CDT 2016


----- On May 4, 2016, at 8:49 AM, Mamadou NGOM ngom at numericap.com wrote:

> Hello everybody,

> When I call my extension the agi script don't work well. when I look at the cli,
> that is what I have:

> <SIP/myprovider-00000007>AGI Tx >> agi_request: ******.php
> <SIP/myprovider-00000007>AGI Tx >> agi_channel: SIP/myprovider-00000007
> <SIP/myprovider-00000007>AGI Tx >> agi_language: fr
> <SIP/myprovider-00000007>AGI Tx >> agi_type: SIP
> <SIP/myprovider-00000007>AGI Tx >> agi_uniqueid: ***************
> <SIP/myprovider-00000007>AGI Tx >> agi_version: 13.8.0
> <SIP/myprovider-00000007>AGI Tx >> agi_callerid:*********
> <SIP/myprovider-00000007>AGI Tx >> agi_calleridname: unknown
> <SIP/myprovider-00000007>AGI Tx >> agi_callingpres: 0
> <SIP/myprovider-00000007>AGI Tx >> agi_callingani2: 0
> <SIP/myprovider-00000007>AGI Tx >> agi_callington: 0
> <SIP/myprovider-00000007>AGI Tx >> agi_callingtns: 0
> <SIP/myprovider-00000007>AGI Tx >> agi_dnid: ********
> <SIP/myprovider-00000007>AGI Tx >> agi_rdnis: unknown
> <SIP/myprovider-00000007>AGI Tx >> agi_context: default
> <SIP/myprovider-00000007>AGI Tx >> agi_extension: ********
> <SIP/myprovider-00000007>AGI Tx >> agi_priority: 13
> <SIP/myprovider-00000007>AGI Tx >> agi_enhanced: 0.0
> <SIP/myprovider-00000007>AGI Tx >> agi_accountcode:
> <SIP/myprovider-00000007>AGI Tx >> agi_threadid: *********************
> <SIP/myprovider-00000007>AGI Tx >> agi_arg_1: 56
> <SIP/myprovider-00000007>AGI Tx >>
> <SIP/myprovider-00000007>AGI Rx << SET VARIABLE ****** 2
> <SIP/myprovider-00000007>AGI Tx >> 510 Invalid or unknown command
> -- <SIP/myprovider-00000007>AGI Script *******.php completed, returning 0

> I looked on the Internet but I saw a clear answer

> it is sure that it is for the compatibility between php5.6 and agi. if somebody
> can help me.

Make sure there are no windows or dos line endings in that php script.  Try running it through dos2unix and see if that solves your issue.

Regards,
Michael

(elguero)



More information about the asterisk-users mailing list