Hi,
The following problem currently has us stumped. We are running an older asterisk 1.4 implementation. Outgoing calls are connected to an IVR on hangup which calls a script via DeadAGI. This system works (and has worked) fine for years via Dahdi/Zaptel & sip trunking.
One of our new SIP providers has an RTP range outside the range we are used to so we ended up setting this trunk up via a 2nd server (also 1.4) and bridging the call over the secondairy server via IAX2. Our entire dailplan works without flaw except for the DeadAGI call the end.
The console does show script call however no verbose output is displayed (the script does return 0).
Output:
[11:50:34] VERBOSE[20650] logger.c: == Spawn extension (belmeniet, s, 4) exited non-zero on ‘IAX2/192.168.78.9:4569-8149’
[11:50:34] VERBOSE[20650] logger.c: – Executing [h@belmeniet:1] DeadAGI(“IAX2/192.168.78.9:4569-8149”, “/var/asterisk/agi-bin/geturl.agi|http://applicationserver/apps/itHelpers/belmeniet/insertRecord.php|project_id|01234|tk_id|00012345|optout_company||optout_tm||niveau||goeddoel||productgroepkeuze01||productgroepkeuze02||productgroepkeuze03||productgroepkeuze04||productgroepkeuze05||productgroepkeuze06||productgroepkeuze07||productgroepkeuze08||productgroepkeuze09||productgroepkeuze10||phone||postalcode||housenumber||ivr_status|0”) in new stack
[11:50:34] VERBOSE[20650] logger.c: – Launched AGI Script /var/asterisk/agi-bin/geturl.agi
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_request: /var/asterisk/agi-bin/geturl.agi
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_channel: IAX2/192.168.78.9:4569-8149
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_language: en
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_type: IAX2
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_uniqueid: 1539856223.2214642
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_callerid: 0612345678
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_calleridname: unknown
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_callingpres: 35
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_callingani2: 0
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_callington: 0
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_callingtns: 0
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_dnid: unknown
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_rdnis: unknown
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_context: belmeniet
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_extension: h
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_priority: 1
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_enhanced: 0.0
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >> agi_accountcode:
[11:50:34] VERBOSE[20650] logger.c: AGI Tx >>
[11:50:35] VERBOSE[20650] logger.c: – AGI Script /var/asterisk/agi-bin/geturl.agi completed, returning 0
[11:50:35] VERBOSE[20650] logger.c: – Hungup ‘IAX2/192.168.78.9:4569-8149’
Output of the same agi call over a SIP channel:
[12:19:56] VERBOSE[25332] logger.c: == Spawn extension (belmeniet, s, 4) exited non-zero on ‘SIP/sipprovider-177c6ff0’
[12:19:56] VERBOSE[25332] logger.c: – Executing [h@belmeniet:1] DeadAGI(“SIP/sipprovider-177c6ff0”, “/var/asterisk/agi-bin/geturl.agi|http://applicationserver/apps/itHelpers/belmeniet/insertRecord.php|project_id|03854|tk_id|00067091|optout_company||optout_tm||niveau||goeddoel||productgroepkeuze01||productgroepkeuze02||productgroepkeuze03||productgroepkeuze04||productgroepkeuze05||productgroepkeuze06||productgroepkeuze07||productgroepkeuze08||productgroepkeuze09||productgroepkeuze10||phone||postalcode||housenumber||ivr_status|0”) in new stack
[12:19:56] VERBOSE[25332] logger.c: – Launched AGI Script /var/asterisk/agi-bin/geturl.agi
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_request: /var/asterisk/agi-bin/geturl.agi
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_channel: SIP/sipprovider-177c6ff0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_language: en
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_type: SIP
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_uniqueid: 1539857994.2219653
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_callerid: 0612345678
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_calleridname: unknown
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_callingpres: 35
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_callingani2: 0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_callington: 0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_callingtns: 0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_dnid: unknown
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_rdnis: unknown
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_context: belmeniet
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_extension: h
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_priority: 1
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_enhanced: 0.0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> agi_accountcode:
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >>
[12:19:56] VERBOSE[25332] logger.c: AGI Rx << VERBOSE “GetUrl: http://applicationserver/apps/itHelpers/belmeniet/insertRecord.php?project_id=03854&tk_id=00067091&optout_company=&optout_tm=&niveau=&goeddoel=&productgroepkeuze01=&productgroepkeuze02=&productgroepkeuze03=&productgroepkeuze04=&productgroepkeuze05=&productgroepkeuze06=&productgroepkeuze07=&productgroepkeuze08=&productgroepkeuze09=&productgroepkeuze10=&phone=&postalcode=&housenumber=&ivr_status=0” 0
[12:19:56] VERBOSE[25332] logger.c: /var/asterisk/agi-bin/geturl.agi|http://applicationserver/apps/itHelpers/belmeniet/insertRecord.php|project_id|03854|tk_id|00067091|optout_company||optout_tm||niveau||goeddoel||productgroepkeuze01||productgroepkeuze02||productgroepkeuze03||productgroepkeuze04||productgroepkeuze05||productgroepkeuze06||productgroepkeuze07||productgroepkeuze08||productgroepkeuze09||productgroepkeuze10||phone||postalcode||housenumber||ivr_status|0: GetUrl: http://applicationserver/apps/itHelpers/belmeniet/insertRecord.php?project_id=03854&tk_id=00067091&optout_company=&optout_tm=&niveau=&goeddoel=&productgroepkeuze01=&productgroepkeuze02=&productgroepkeuze03=&productgroepkeuze04=&productgroepkeuze05=&productgroepkeuze06=&productgroepkeuze07=&productgroepkeuze08=&productgroepkeuze09=&productgroepkeuze10=&phone=&postalcode=&housenumber=&ivr_status=0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> 200 result=1
[12:19:56] VERBOSE[25332] logger.c: AGI Rx << VERBOSE “Result: 0” 0
[12:19:56] VERBOSE[25332] logger.c: /var/asterisk/agi-bin/geturl.agi|http://applicationserver/apps/itHelpers/belmeniet/insertRecord.php|project_id|03854|tk_id|00067091|optout_company||optout_tm||niveau||goeddoel||productgroepkeuze01||productgroepkeuze02||productgroepkeuze03||productgroepkeuze04||productgroepkeuze05||productgroepkeuze06||productgroepkeuze07||productgroepkeuze08||productgroepkeuze09||productgroepkeuze10||phone||postalcode||housenumber||ivr_status|0: Result: 0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> 200 result=1
[12:19:56] VERBOSE[25332] logger.c: AGI Rx << SET VARIABLE geturlresult 0
[12:19:56] VERBOSE[25332] logger.c: AGI Tx >> 200 result=1
[12:19:56] VERBOSE[25332] logger.c: – AGI Script /var/asterisk/agi-bin/geturl.agi completed, returning 0
Anyone able to nudge us in the right direction?
Thanks in advance.