[asterisk-users] AGI Script

Gustavo Salvador gustavo.salvador.69 at gmail.com
Thu Mar 7 15:43:18 CST 2013



> Hi, thanks.
> 
> 
> .Did that include 'agi set debug on?'
>> Yes, that include this command.
>  
>> Can you 'cut-n-paste' the relevant 'sanitized' console output?
>> Ok. This is:
>  trixbox146002*CLI> 
>     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_request: agi-test.agi
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_channel: SIP/INCONCERT-000035d2
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_language: en
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_type: SIP
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_uniqueid: 1362669295.35561
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_version: 1.6.0.28-samy-r100
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_callerid: 1044
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_calleridname: 1044
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_callingpres: 0
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_callingani2: 0
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_callington: 0
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_callingtns: 0
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_dnid: 701820101044
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_rdnis: unknown
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_context: ModernaDesv_E1
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_extension: s
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_priority: 3
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_enhanced: 0.0
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_accountcode: 
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> agi_threadid: 29367216
> trixbox146002*CLI> 
> <SIP/INCONCERT-000035d2>AGI Tx >> 
> trixbox146002*CLI> 
> [Mar  7 10:14:55] NOTICE[32548]: channel.c:3051 __ast_read: Dropping incompatible voice frame on SIP/INCONCERT-000035d2 of format ulaw since our native format has changed to 0x8 (alaw)
> trixbox146002*CLI> 
>     -- <SIP/INCONCERT-000035d2>AGI Script agi-test.agi completed, returning 0
> 
>> I looked through my AGIs and find I always set channel variables and let the dialplan do the actual dial().
>> 
>> 1) Is your AGI exiting before the dial() completes?
>> Yes.
>  
>> 2) If you execute the same dial() command from the 'AGI debug output' (which should show the expanded variables) in your dialplan, does that yield andy clues?
> How I do that? I just use the AMI command originate. Executing this with the protocol already works, but not ring.
>> 
>> 3) If you use another technology like SIP can you enable SIP debugging and observe the SIP dialog?
>> I can not use SIP because the call goes out to E1.
>  
> Regards,
> 
> Gustavo 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130307/0b1cefa9/attachment.htm>


More information about the asterisk-users mailing list