Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ngom at numericap.com
Guest





PostPosted: Wed May 04, 2016 7:50 am    Post subject: [asterisk-users] Compatibilty between agi for asterisk 13.8. Reply with quote

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.


Thank you !!!


Mamadou NGOM
Ingénieur Télécommunications & Réseaux
Mobile: 06 72 45 23 03
Skype: Mamadou Numericap
NumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015.
siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. mail: finance@numericap.com ([email]mail%3Afinance@numericap.com[/email])
Centre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :04.42.73.88.52 
Back to top
asterisk_list at earth...
Guest





PostPosted: Wed May 04, 2016 8:14 am    Post subject: [asterisk-users] Compatibilty between agi for asterisk 13.8. Reply with quote

On Wednesday 04 May 2016, Mamadou NGOM wrote:
Quote:
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:
[stuff deleted]
<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.

It looks as though something might be going wrong in the AGI script itself.
Did you use a "proper" AGI library, or a quick-and-dirty homebrew solution?
(There is little virtue in walking all the way to the tool shed to fetch a
chisel, if you know the screwdriver you already have in your drawer can be
used for the job. On the other hand, breaking your screwdriver by
inappropriately using it as a chisel does not look too good either. Knowing
the difference is one of the qualities of a great programmer.)

SET VARIABLE is a legitimate enough command, but ****** probably is not a
valid variable name. Maybe there was a forbidden character in there before
you redacted it?


I would try to isolate the problem, by writing an AGI script that *just* sets
a variable to some fixed value and exits; and having a corresponding extension
that *just* calls the AGI script, displays the variable's value in the CLI
with a NoOp() statement and then hangs up. When you know you can do that, and
successfully read back the value from within your dialplan, *then* you can
make it decide what value to put in that variable.

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services