<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:rgb(51, 51, 51);background-color:rgb(255, 255, 255);width:100%;'><tr><td valign='top' style='font: inherit;'>Hi sir,<br><br>i'm sorry but how can i use it on a hangup channel?<br><br>>> exten =&gt; _00.,1,AGI(get-available.php)<br>>> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}" = "1"]?70)<br>>> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}" = "2"]?80)<br>>> exten =&gt; _00.,70,Dial(SIP/${EXTEN}@sb-trunk)<br>>> exten =&gt; _00.,n,Hangup<br>>> exten =&gt; h,n,DEADAGI(get-usage.php) <-------should i do it like this?<br>>> exten =&gt; _00.,80,Busy<br>>> exten =&gt; _00.,n,Hangup<br><br>thank you<br><br><br>--- On <b>Sat, 6/7/08, Lenz <i><lenz-ml@loway.it></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px;
padding-left: 5px;">From: Lenz <lenz-ml@loway.it><br>Subject: Re: [asterisk-users] Question on DeadAGI<br>To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com><br>Date: Saturday, June 7, 2008, 12:50 PM<br><br><pre>You should use it on the hang-up extension and only after the channel is <br>technically dead.<br>It works fine for that.<br>l.<br><br><br><br><br>On Sat, 07 Jun 2008 01:25:37 +0200, Nhadie Ramos <nhadie.ramos@yahoo.com><br> <br>wrote:<br><br>> Hi,<br>><br>> How can i get the deadAGI to work at this scenario<br>><br>> Basically when someonc calls international,&nbsp; i will get the <br>> remaining balance using AGI get-available.php.<br>><br>> but after the call i would like to get the usage by calling <br>> get-usage.php so i can update users balance, but looking at the debug it <br>> seems the AGI was not called. is there som<br>><br>>
exten =&gt; _00.,1,AGI(get-available.php)<br>> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}" =<br>"1"]?70)<br>> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}" =<br>"2"]?80)<br>> exten =&gt; _00.,70,Dial(SIP/${EXTEN}@sb-trunk)<br>> exten =&gt; _00.,n,Hangup<br>> exten =&gt; _00.,n,DEADAGI(get-usage.php)<br>> exten =&gt; _00.,80,Busy<br>> exten =&gt; _00.,n,Hangup<br>><br>><br>> Regards,<br>> Nhadie<br>><br>><br>><br><br><br><br>-- <br>Loway Research - Home of QueueMetrics<br>http://queuemetrics.com<br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> http://lists.digium.com/mailman/listinfo/asterisk-users</pre></blockquote></td></tr></table><br>