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