[asterisk-users] AGI problema

Steve Edwards asterisk.org at sedwards.com
Tue Dec 12 10:42:48 MST 2006


I've never tried to dial from an AGI. Would setting a channel variable 
with the dial string and then dialing in the dial plan work for you? Then 
you could handle the hangup in the "h" extension and call your billing 
using deadagi().

On Tue, 12 Dec 2006, Eduardo wrote:

> There is something which I could do to execute priority 2? It's possible my agi have programming error?
> 
> Eduardo wrote:
>       Hi all. I've written a AGI in C language. It receive the asterisk variables to identify the caller. After, it
>       dial to destination. When caller or the called hangup the phone, asterisk returns me '200 result=-1'. For this,
>       asterisk never execute next step, priority 2. This is very important to me, because priority 2 do the billing.
>       Below I give you the debug message:
>
>           -- Executing agi("SIP/provale-7473", "dialer|551236337388")
>           -- Launched AGI Script /usr/local/share/asterisk/agi-bin/dialer
>       AGI Tx >> agi_request: dialer
>       AGI Tx >> agi_channel: SIP/provale-7473
>       AGI Tx >> agi_language: br
>       AGI Tx >> agi_type: SIP
>       AGI Tx >> agi_uniqueid: 1165939032.131
>       AGI Tx >> agi_callerid: provale
>       AGI Tx >> agi_calleridname: Provale
>       AGI Tx >> agi_callingpres: 0
>       AGI Tx >> agi_callingani2: 0
>       AGI Tx >> agi_callington: 0
>       AGI Tx >> agi_callingtns: 0
>       AGI Tx >> agi_dnid: 01236337388
>       AGI Tx >> agi_rdnis: unknown
>       AGI Tx >> agi_context: default
>       AGI Tx >> agi_extension: 01236337388
>       AGI Tx >> agi_priority: 1
>       AGI Tx >> agi_enhanced: 0.0
>       AGI Tx >> agi_accountcode:
>       AGI Tx >>
>       AGI Rx << exec dial "sip/go2call/551236337388|60|TtS(3600)"
>           -- AGI Script Executing Application: (dial) Options: (sip/go2call/551236337388|60|TtS(3600))
>           -- Setting call duration limit to 3600 seconds.
>           -- Called go2call/551236337388
>           -- SIP/go2call-3fd0 is making progress passing it to SIP/provale-7473
>           -- SIP/go2call-3fd0 answered SIP/provale-7473
>           -- Attempting native bridge of SIP/provale-7473 and SIP/go2call-3fd0
>       AGI Tx >> 200 result=-1
>           -- AGI Script dialer completed, returning 0
>
>        ______________________________________________________________________________________________________________________
>  _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> 
> 
>

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000


More information about the asterisk-users mailing list