[OpenSIPS-Users] CDR Accounting

Dave Singer dave.singer at wideideas.com
Wed Jan 19 18:29:28 CET 2011

Be careful when using $Tsm. I read a thread the other day that was just
talking about it and that it returns milliseconds since midnight, not epoch.
So if that is true you will need to somehow handle calls that cross midnight
for duration at least and start/answer/end of call if including the
precision in those timestamps.
I'd be interested to see what you find.
What I've seen with sub second accounting is for rounding purposes where for
example billing in 6 second increments and it is always rounded up. So a
call 6.001 seconds would be charged for 12 seconds.


On Wed, Jan 19, 2011 at 6:35 AM, Brett Nemeroff <brett at nemeroff.com> wrote:

> On Wed, Jan 19, 2011 at 8:32 AM, Andrew Philp <andrew.philp at just-tek.com>wrote:
>> We are looking to use this for billing directly and for most of our
>> customers are billed on a hundredth of a second.
>> Does this make sense?
> Sure it does, but I've never heard of sub second billing. The ACC module is
> probably not going to help you for this need presently. I believe $Tsm
> returns milliseconds. You may be able to manually account for the calls with
> that.
> -Brett
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110119/8a290dde/attachment.htm>

More information about the Users mailing list