[Freeswitch-users] mod_cdr_mongodb and not correct start_uepoch (*_uepoch) values

Steven Ayre steveayre at gmail.com
Tue Jul 8 17:23:40 MSD 2014


I think the data type you're using in the database is the problem.
2147483647 is the maximum value you can store in a signed 32bit integer.
You're trying to store a larger value so it's truncating it to the maximum
possible value. Try a type that uses 64bits.


On 8 July 2014 10:47, Sergey Zhuravlov <4orbit at gmail.com> wrote:

> hi!  I tune cdr-stats now.
>
> Found that in the database mongodb, which stores data from freeswitch
> with mod_cdr_mongodb strange value
>
> start_epoch ": 1399643826," start_uepoch ": 2147483647 .... "start_stamp":
> "2014-05-09 13:57:06"
>
> The problem with the value "start_uepoch": 2147483647
>
> This is not true value should be:
>
>      <start_epoch> 1399643826 </ start_epoch>
>      <start_uepoch> 1399643826442976 </ start_uepoch>
>
> This is a file from cdr_xml
>
> Someone faced with such behavior mod_cdr_mongodb?
> HOWTO correct it?
>
> FreeSWITCH Version 1.5.12b+git~20140419T062924Z~f408dae2af~32bit (git
> f408dae 2014-04-19 06:29:24Z 32bit)
>
> Ubuntu 12.04.4 LTS
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140708/9a8b703c/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list