[asterisk-users] AGI problema

2006-12-12 Thread Eduardo




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


Re: [asterisk-users] AGI problema

2006-12-12 Thread Eduardo




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
  




___
--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


Re: [asterisk-users] AGI problema

2006-12-12 Thread Michiel van Baak
On 14:43, Tue 12 Dec 06, Eduardo wrote:
There is something which I could do to execute priority 2? It's possible
my agi have programming error?

You can use the h extension to do stuff after a channel is
hungup. This is mostly used for billing or processing of the
recording file of a call.

If you really want to do it in priority 2 you can use the g
option in the dial command.

-- 

Michiel van Baak
[EMAIL PROTECTED]
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer afficionados are both called users?

___
--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


Re: [asterisk-users] AGI problema

2006-12-12 Thread Steve Edwards
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  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
___
--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