[asterisk-users] AGI: Not getting answers from get_data in a call-file call

Edwin Groothuis edwin at mavetju.org
Sun Feb 3 22:46:15 CST 2008


> Have you tried with AGI Debug on?

Yes! Even before you asked :-)

This is when I use DeadAgi (for some reason):

    -- Executing [h at barnet-callback:3] DeadAGI("Zap/4:103-1", "callback2.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/callback2.agi
AGI Tx >> agi_request: callback2.agi
AGI Tx >> agi_channel: Zap/4:103-1
AGI Tx >> agi_language: en
AGI Tx >> agi_type: Zap
AGI Tx >> agi_uniqueid: 1202098745.49994
AGI Tx >> agi_callerid: 0288159096
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 3
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 33
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 88159305
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: barnet-callback
AGI Tx >> agi_extension: h
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << CHANNEL STATUS
AGI Tx >> 200 result=6
AGI Rx << SAY DIGITS 6 ""
[Feb  4 15:19:19] WARNING[19954]: file.c:643 ast_readaudio_callback: Failed to write frame
    -- <Zap/4:103-1> Playing 'digits/6' (language 'en')
AGI Tx >> 200 result=-1
AGI Rx << GET DATA one-moment-please 10000 3
[Feb  4 15:19:19] WARNING[19954]: file.c:643 ast_readaudio_callback: Failed to write frame
    -- <Zap/4:103-1> Playing 'one-moment-please' (language 'en')
AGI Tx >> 200 result=-1
AGI Rx << SAY DIGITS 1 ""
[Feb  4 15:19:19] WARNING[19954]: file.c:643 ast_readaudio_callback: Failed to write frame
    -- <Zap/4:103-1> Playing 'digits/1' (language 'en')
AGI Tx >> 200 result=-1
    -- AGI Script callback2.agi completed, returning -1


And this is with normal AGI:

    -- Executing [0288159096 at barnet-callback:3] AGI("Zap/4:100-1", "callback2.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/callback2.agi
AGI Tx >> agi_request: callback2.agi
AGI Tx >> agi_channel: Zap/4:100-1
AGI Tx >> agi_language: en
AGI Tx >> agi_type: Zap
AGI Tx >> agi_uniqueid: 1202099898.50183
AGI Tx >> agi_callerid: 0288159096
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 3
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 33
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 82572599
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: barnet-callback
AGI Tx >> agi_extension: 0288159096
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << ANSWER
AGI Tx >> 200 result=0
AGI Rx << CHANNEL STATUS
AGI Tx >> 200 result=6
AGI Rx << SAY DIGITS 6 ""
    -- <Zap/4:100-1> Playing 'digits/6' (language 'en')
AGI Tx >> 200 result=0
AGI Rx << GET DATA one-moment-please 10000 3
    -- <Zap/4:100-1> Playing 'one-moment-please' (language 'en')
AGI Tx >> 200 result= (timeout)
    -- AGI Script callback2.agi completed, returning 0


When running it as a normal call (i.e. not initated by a call-file),
it shows up with:

AGI Rx << GET DATA one-moment-please 10000 3
    -- <Zap/93-1> Playing 'one-moment-please' (language 'en')
AGI Tx >> 200 result=354
AGI Rx << SAY DIGITS 354 ""
    -- <Zap/93-1> Playing 'digits/3' (language 'en')
    -- <Zap/93-1> Playing 'digits/5' (language 'en')
    -- <Zap/93-1> Playing 'digits/4' (language 'en')
AGI Tx >> 200 result=0


-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |              Weblog: http://www.mavetju.org/weblog/



More information about the asterisk-users mailing list