[OpenSIPS-Users] Miliseconds precision for accounting module

Ryan Mitchell rjm at tcl.net
Thu Apr 10 22:03:43 CEST 2014


Using db_extra to stuff custom data into your acc table, use the $time var
with a format such as "%s.%N" or similar.

Or, as you suggested, do it on the database level with a trigger or
auto-update column.



On Thu, Apr 10, 2014 at 10:01 AM, Maciej Bylica <mbsip at gazeta.pl> wrote:

> Hello
>
> I just want to know how to achieve miliseconds precision for accounting
> module.
> This is quite important while trying to sum up total traffic duration with
> the accuracy of hundred of ms.
>
> As i see there is no rounding feature implemented as well, but heaving ms
> precision it could be done directly on DB level.
>
> Could somebody give me a hand.
>
> Thanks in advanced
> Mac
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Ryan Mitchell <rjm at tcl.net>
Telecom Logic, LLC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140410/6eb8dbd1/attachment-0001.htm>


More information about the Users mailing list