<div dir="ltr">Still same, even when I am trying to write in one agi and calling it using DeadAGI<div><br clear="all"><div dir="ltr">Regards,<br>Zohair Raza<div><br></div></div>
<br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 6:56 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Try this<u></u><u></u></span></p><p class="MsoNormal">
exten => _X.,1,Dial(SIP/1*100)<u></u><u></u></p><p class="MsoNormal">exten => h,1,wait(10)<u></u><u></u></p><p class="MsoNormal">exten => h,n,AGI(cdr.php,11)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Don’t know how long after hangup this information gets updated, but would be shocked if 10 seconds doesn’t cover it.<u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Zohair Raza<br>
<b>Sent:</b> Friday, December 16, 2011 8:51 AM</span></p><div class="im"><br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br></div><b>Subject:</b> Re: [asterisk-users] CDR END TIME in correct in 1.8+<u></u><u></u><p>
</p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Yes running from h<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
</div><div><div><p class="MsoNormal">exten => _X.,1,Dial(SIP/1*100)<u></u><u></u></p></div><div><p class="MsoNormal">exten => h,1,AGI(cdr.php,11)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
</div>
<div><p class="MsoNormal">Regards,<br>Zohair Raza<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal"> <u></u><u></u></p></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">
<br><br><u></u><u></u></p><div><p class="MsoNormal">On Fri, Dec 16, 2011 at 6:42 PM, Danny Nicholas <<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>> wrote:<u></u><u></u></p><div><div><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You are running the AGI from the h() exten? Otherwise I wouldn’t expect CDR(end) to populated or correct.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Zohair Raza<br>
<b>Sent:</b> Friday, December 16, 2011 8:38 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> [asterisk-users] CDR END TIME in correct in 1.8+</span><u></u><u></u></p><div><div><p class="MsoNormal">
<u></u><u></u></p><div><p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I've tested 1.8.6.0, 1.8.4.0 and 1.8.0 <u></u><u></u></p></div><div><p class="MsoNormal">
<u></u><u></u></p></div><div><p class="MsoNormal">I can get proper start and answer time but not the end time of call <u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><div><div><p class="MsoNormal">
<SIP/11-00000000>AGI Rx << GET VARIABLE CDR(start)<u></u><u></u></p></div><div><p class="MsoNormal"><SIP/11-00000000>AGI Tx >> 200 result=1 (2011-12-16 18:34:48)<u></u><u></u></p></div><div><p class="MsoNormal">
<SIP/11-00000000>AGI Rx << GET VARIABLE CDR(end)<u></u><u></u></p></div><div><p class="MsoNormal"><SIP/11-00000000>AGI Tx >> 200 result=1 (2011 12-16 18:34:48)<u></u><u></u></p></div></div><div><div>
<p class="MsoNormal"><SIP/11-00000000>AGI Rx << GET VARIABLE CDR(answer)<u></u><u></u></p></div><div><p class="MsoNormal"><SIP/11-00000000>AGI Tx >> 200 result=1 (2011-12-16 18:34:50)<u></u><u></u></p>
</div></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">In 1.8.6.0, there was no end time and in the other two it's present but neither in correct format nor exact time.<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Is it something related to system or a bug?<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">
Regards,<br>Zohair Raza<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div></div><p class="MsoNormal"><br>--<br>_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div></div>