<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 tried it this way, and now i can see my DEADGI being called next prob is on that script i query the cdr table with the uniqueid. tried counting the row result first , and result was 0.<br><br>how can i make sure that it was already at the CDR table before i call my agi? i tried to use ResetCDR() and also without ResetCDR() but still 0 result on the row.<br><br>but when i query manully on the mysql console, i can see the cll was logged.<br><br>Thank You<br>[macro-dialout-trunk]<br>exten => s,1,Wait(1)<br>exten => s,n,Dial(SIP/${ARG1}@${ARG2},30,t)<br>exten => s,n.ResetCDR()<br>exten => s,n,Hangup<br>exten => h,1,DEADAGI(get-total.php)<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>