[asterisk-users] Question on DeadAGI

Nhadie Ramos nhadie.ramos at yahoo.com
Sat Jun 7 16:55:08 CDT 2008


Hi sir,

i'm sorry but how can i use it on a hangup channel?

>> exten => _00.,1,AGI(get-available.php)
>> exten => _00.,n,GotoIf($["${CALLSTATUS}" = "1"]?70)
>> exten => _00.,n,GotoIf($["${CALLSTATUS}" = "2"]?80)
>> exten => _00.,70,Dial(SIP/${EXTEN}@sb-trunk)
>> exten => _00.,n,Hangup
>> exten => h,n,DEADAGI(get-usage.php)   <-------should i do it like this?
>> exten => _00.,80,Busy
>> exten => _00.,n,Hangup

thank you


--- On Sat, 6/7/08, Lenz <lenz-ml at loway.it> wrote:
From: Lenz <lenz-ml at loway.it>
Subject: Re: [asterisk-users] Question on DeadAGI
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Date: Saturday, June 7, 2008, 12:50 PM

You should use it on the hang-up extension and only after the channel is  
technically dead.
It works fine for that.
l.




On Sat, 07 Jun 2008 01:25:37 +0200, Nhadie Ramos <nhadie.ramos at yahoo.com>
 
wrote:

> Hi,
>
> How can i get the deadAGI to work at this scenario
>
> Basically when someonc calls international,  i will get the  
> remaining balance using AGI get-available.php.
>
> but after the call i would like to get the usage by calling  
> get-usage.php so i can update users balance, but looking at the debug it  
> seems the AGI was not called. is there som
>
> exten => _00.,1,AGI(get-available.php)
> exten => _00.,n,GotoIf($["${CALLSTATUS}" =
"1"]?70)
> exten => _00.,n,GotoIf($["${CALLSTATUS}" =
"2"]?80)
> exten => _00.,70,Dial(SIP/${EXTEN}@sb-trunk)
> exten => _00.,n,Hangup
> exten => _00.,n,DEADAGI(get-usage.php)
> exten => _00.,80,Busy
> exten => _00.,n,Hangup
>
>
> Regards,
> Nhadie
>
>
>



-- 
Loway Research - Home of QueueMetrics
http://queuemetrics.com

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080607/fb858e1c/attachment.htm 


More information about the asterisk-users mailing list