[Freeswitch-users] how to find ring time

Avi Marcus avi at avimarcus.net
Sun Aug 3 15:43:53 MSD 2014


I usually do (duration - billsec)

For more precision, use the millisecond stamps: (mduration-billmsec)/1000
-Avi


On Fri, Aug 1, 2014 at 10:40 PM, Andre <andretodd at verizon.net> wrote:

> Hi, following these instructions my ring time comes out to be  49280130.
> I’m not sure what kind of number this is. How do I convert this to
> milliseconds?
>
>
>
> http://wiki.freeswitch.org/wiki/Cdr
>
>
>
> *How long did the phone ring*
>
> How long the phone rang is determined either by the *hangup_time* or the
> *answered_time*:
>
> if ( answered_time == 0 ) then
>
>     length_of_phone_ringing = hangup_time - created_time
>
> else
>
>     length_of_phone_ringing = answered_time - created_time
>
> end
>
>
>
>
>
> _________________________________________________________________________
> 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/20140803/99645993/attachment.html 


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