<div dir="ltr">Instead of using CDR for this, could you get the info you need using channel event logging (Asterisk CEL)? I have never used it myself - just something I've run across in the past that seems like it might work for this case:<br>
<br><a href="https://wiki.asterisk.org/wiki/display/AST/CEL+Design+Goals">https://wiki.asterisk.org/wiki/display/AST/CEL+Design+Goals</a><br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 24, 2014 at 8:48 AM, [Digital^Dude] ® <span dir="ltr"><<a href="mailto:millennium.bug@gmail.com" target="_blank">millennium.bug@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hello,<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">
There seems to be a problem with asterisk cdrs when calls are generated via AMI Originate using Local channels.<br>
</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Asterisk writes CDR as soon as A party off-hooks. Resulting in very inaccurate billsec and duration values.<br>
<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Expected CDR in case of local channel origination should be 2 records, one can be when A party answers, and the other should be written when B party hangs up the phone.</div>
<br><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline">Any hints?</div><br></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>