[SR-Users] time for acc records

Daniel-Constantin Mierla miconda at gmail.com
Wed Aug 10 14:21:10 CEST 2011


Hello,

it seems that is some parts of the world it is required to have call 
duration with two decimals precision. By default acc module does the 
timestamp in seconds.

Thinking of adding an option to save the milliseconds, I see two option:
- a new column to store the milliseconds part as integer
- a new column to store the seconds.milliseconds as double

For those using various billing engines, what would be easier to digest 
when rating the CDRs?

There is already the option of doing db extra column to store $TV(Sn), 
but this value is stored in a string (varchar) format, giving a little 
more troubles to convert to numeric format before being able to compute 
duration, so it might just worth doing the C coding to store in right 
data type.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list