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:
https://wiki.asterisk.org/wiki/display/AST/CEL+Design+Goals On Thu, Apr 24, 2014 at 8:48 AM, [Digital^Dude] ® <millennium....@gmail.com>wrote: > Hello, > > There seems to be a problem with asterisk cdrs when calls are generated > via AMI Originate using Local channels. > > Asterisk writes CDR as soon as A party off-hooks. Resulting in very > inaccurate billsec and duration values. > > 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. > > Any hints? > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users