[asterisk-bugs] [Asterisk 0016559]: [patch] Duration and Billsec Decimal Place

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 8 18:48:18 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16559 
====================================================================== 
Reported By:                cianmaher
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16559
Category:                   Addons/cdr_addon_mysql
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     ready for review
Asterisk Version:           1.6.2.0 
JIRA:                       SWP-1475 
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/461/ 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-06 14:22 CST
Last Modified:              2010-06-08 18:48 CDT
====================================================================== 
Summary:                    [patch] Duration and Billsec Decimal Place
Description: 
My problem at present is I has Sangoma ss7 box, woomera, asterisk1.6.2 and
addons 1.6.2 on a server that is connected to 8 ss7 trunks with other
carriers. I have asterisk writing cdr's to mysql however it appears to
round up always. 

For example:

One of the Carriers reports a call duration of 31.7seconds but we report
it as 33seconds assuming because there is some transit duration of approx
0.4 - 0.5 of a second which brings me to 32.1 or 32.2 but then it is
rounded up to 33.

My questions are:

* Is it possible for asterisk not to round the duration and billsec?
* Is it possible to show duration and billsec with a decimal to show the
true figure?

Thanks in advance

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0016715 Billing Differences between Carrier and...
====================================================================== 

---------------------------------------------------------------------- 
 (0123155) svnbot (reporter) - 2010-06-08 18:48
 https://issues.asterisk.org/view.php?id=16559#c123155 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 269153

U   trunk/CHANGES
U   trunk/UPGRADE.txt
U   trunk/addons/cdr_mysql.c
U   trunk/cdr/cdr_adaptive_odbc.c
U   trunk/cdr/cdr_odbc.c
U   trunk/cdr/cdr_pgsql.c
U   trunk/cdr/cdr_sqlite.c
U   trunk/cdr/cdr_tds.c
U   trunk/configs/cdr_custom.conf.sample
U   trunk/configs/cdr_odbc.conf.sample
U   trunk/configs/cdr_sqlite3_custom.conf.sample
U   trunk/configs/cdr_syslog.conf.sample
U   trunk/configs/cdr_tds.conf.sample
U   trunk/funcs/func_cdr.c

------------------------------------------------------------------------
r269153 | snuffy | 2010-06-08 18:48:17 -0500 (Tue, 08 Jun 2010) | 11 lines

Add High Resolution Times to CDRs for Asterisk

People expressed an interest in having access to the exact length of calls
to a finer degree than seconds. See the CHANGES and UPGRADE.txt for usage
also updated the sample configs to note the change.

Patch by snuffy.

(closes issue https://issues.asterisk.org/view.php?id=16559)
Reported by: cianmaher
Tested by: cianmaher, snuffy

Review: https://reviewboard.asterisk.org/r/461/
------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=269153 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-08 18:48 svnbot         Checkin                                      
2010-06-08 18:48 svnbot         Note Added: 0123155                          
======================================================================




More information about the asterisk-bugs mailing list