[asterisk-dev] FastAGI behaviour in trunk changed recently?

Alistair Cunningham acunningham at integrics.com
Mon Jul 10 05:59:33 MST 2006


Noting the following paragraph in UPGRADE.txt in SVN trunk revision 37324:

* The exit behavior of the AGI applications has changed...  (rest 
snipped for brevity)

Has the behaviour of FastAGIs changed recently? It now seems that 
Asterisk terminates the call when the FastAGI returns. The following 
commands from an AGI work on 1.2.9.1, and on an SVN trunk from 
2006-04-23, but not one from today:

     -- Executing [123 at from-internal:1] AGI("SIP/1.2.3.4-086f8e78", 
"agi://127.0.0.1/start?stype=phone&snumber=&cnumber=123&scustomer=") in 
new stack
AGI Tx >> agi_network_script: 
start?stype=phone&snumber=&cnumber=123&scustomer=
AGI Tx >> agi_request: 
agi://127.0.0.1/start?stype=phone&snumber=&cnumber=123&scustomer=
AGI Tx >> agi_channel: SIP/1.2.3.4-086f8e78
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1152535748.2
AGI Tx >> agi_callerid: 123402
AGI Tx >> agi_calleridname: Alistair Cunningham
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 123
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: from-internal
AGI Tx >> agi_extension: 123
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE SIP_HEADER(X-Enswitch-External)
AGI Tx >> 200 result=0>
AGI Rx << SET VARIABLE __DYNAMIC_FEATURES "park_caller#park_called"
AGI Tx >> 200 result=1>
AGI Rx << SET VARIABLE TIMEOUT(absolute) 86400
     -- Channel will hangup at 2006-07-11 12:49:09 UTC.
AGI Tx >> 200 result=1
AGI Rx << VERBOSE "Resolving type '', number '123'." 5
   agi://127.0.0.1/start?stype=phone&snumber=&cnumber=123&scustomer=: 
Resolving type '', number '123'.
AGI Tx >> 200 result=1
AGI Rx << VERBOSE "Resolving type 'conferencelogin', number ''." 5
   agi://127.0.0.1/start?stype=phone&snumber=&cnumber=123&scustomer=: 
Resolving type 'conferencelogin', number ''.
AGI Tx >> 200 result=1
AGI Rx << SET VARIABLE CALLERID(number) "123402"
AGI Tx >> 200 result=1>
AGI Rx << EXEC SetCallerPres allowed
     -- AGI Script Executing Application: (SetCallerPres) Options: (allowed)
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT enswitch-conferencelogin
AGI Tx >> 200 result=0>
AGI Rx << SET EXTENSION 00
AGI Tx >> 200 result=0>
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0>
AGI Rx << SET VARIABLE ENSWITCH-DCUSTOMER "2"
AGI Tx >> 200 result=1>
AGI Rx << SET VARIABLE ENSWITCH-DTYPE "external"
AGI Tx >> 200 result=1>
AGI Rx << SET VARIABLE ENSWITCH-DNUMBER "00"
AGI Tx >> 200 result=1>
AGI Rx << SET VARIABLE ENSWITCH-CUTOFF ""
AGI Tx >> 200 result=1>
     -- AGI Script 
agi://127.0.0.1/start?stype=phone&snumber=&cnumber=123&scustomer= 
completed, returning 0

Then Asterisk does not process the call any further. The 
"enswitch-conferencelogin" context does exist.

-- 
Alistair Cunningham,
Integrics Ltd,
+44 20 799 39 799
http://integrics.com/



More information about the asterisk-dev mailing list