<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Hi Asterisk-users,</div>
<div><br>
</div>
<div>I have a bit of a hairy one for you.. that is driving me absolutely nuts to be frank.</div>
<div><br>
</div>
<div>We have an issue where our CDR records are being recorded with a zero billsec/duration on particular call cases, but not all.</div>
<div><br>
</div>
<div>See below CDR for "internal" (locally routed) call, with correct billsec/durations (dialled numbers X'd for privacy):</div>
<div>mysql> select * from cdr where id = '4352614'\G</div>
<div>*************************** 1. row ***************************</div>
<div> calldate: 2018-11-02 03:02:24</div>
<div> clid: "Red Shed" <XXXX></div>
<div> src: XXXX</div>
<div> dst: XXXX</div>
<div> dcontext: ringext</div>
<div> channel: SIP/6886A7C5F3CE01-000007d5</div>
<div> dstchannel: SIP/44ADD9D47A6401-000007d6</div>
<div> lastapp: Dial</div>
<div> lastdata: SIP/44ADD9D47A6401,60,kr(ring)</div>
<div> duration: 27</div>
<div> billsec: 24</div>
<div>disposition: ANSWERED</div>
<div> amaflags: 3</div>
<div>accountcode: </div>
<div> uniqueid: 1541127744.6857</div>
<div> userfield: </div>
<div> site: 8</div>
<div> tz: 0</div>
<div> timestamp: 2018-11-02 03:02:52</div>
<div> id: 4352614</div>
<div> linkedid: 1541127744.6857</div>
<div>1 row in set (0.00 sec)</div>
<div><br>
</div>
<div>And see following CDR which was "outbound" (routed out to another Asterisk server for PSTN connection):</div>
<div>mysql> select * from cdr where id = '4352617'\G</div>
<div>*************************** 1. row ***************************</div>
<div> calldate: 2018-11-02 03:19:42</div>
<div> clid: "Wallow" <XXXX></div>
<div> src: XXXX</div>
<div> dst: XXXXXXXXXX</div>
<div> dcontext: aad_anaresat</div>
<div> channel: SIP/08CC68E8070801-000007da</div>
<div> dstchannel: IAX2/cas1-kin1-19305</div>
<div> lastapp: Dial</div>
<div> lastdata: IAX2/ast1-cas1:@cas1-kin1/XXXXXXXXXX,90,</div>
<div> duration: 0</div>
<div> billsec: 0</div>
<div>disposition: ANSWERED</div>
<div> amaflags: 3</div>
<div>accountcode: 784679</div>
<div> uniqueid: 1541128747.6867</div>
<div> userfield: </div>
<div> site: 8</div>
<div> tz: 0</div>
<div> timestamp: 2018-11-02 03:19:42</div>
<div> id: 4352617</div>
<div> linkedid: 1541128747.6867</div>
<div>1 row in set (0.00 sec)</div>
<div><br>
</div>
<div><br>
</div>
<div>If I look at the CDR for the next leg of this call, I can see that the billsec & duration are correctly recorded as 3 & 26 respectively, which is correct. It just doesn't get recorded on the originating server.</div>
<div><br>
</div>
<div>We have only started seeing this behaviour when upgrading from 11.x to 13.x - So it's something to do with the new CDR code..</div>
<div>Does anyone have any idea why a CDR would EVER have a blank duration & billsec, when the disposition is ANSWERED?? </div>
<div>Any tips would be great, because this is absolutely driving me crazy!</div>
<div><br>
</div>
<div>Thanks guys,</div>
<div><br>
</div>
<div>Calum</div>
<div><br>
</div>
<div></div>
<div></div>
<div></div>
<div></div>
<P>___________________________________________________________________________</P>
<P> Australian Antarctic Division - Commonwealth of
Australia<BR>IMPORTANT: This transmission is intended for the addressee only. If
you are not the<BR>intended recipient, you are notified that use or
dissemination of this communication is<BR>strictly prohibited by Commonwealth
law. If you have received this transmission in error,<BR>please notify the
sender immediately by e-mail or by telephoning +61 3 6232 3209 and<BR>DELETE the
message.<BR> Visit our web site at <A
href="http://www.antarctica.gov.au/">http://www.antarctica.gov.au/</A><BR>___________________________________________________________________________</P>
</body>
</html>