<div dir="ltr"><div class="gmail_extra">I usually do (duration - billsec)<br><br>For more precision, use the millisecond stamps: (mduration-billmsec)/1000<br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi<br>

</span></div></div>
<br><br><div class="gmail_quote">On Fri, Aug 1, 2014 at 10:40 PM, Andre <span dir="ltr">&lt;<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">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?<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-bottom:12.0pt">

<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="http://wiki.freeswitch.org/wiki/Cdr" target="_blank">http://wiki.freeswitch.org/wiki/Cdr</a> <u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN" style="font-size:18.0pt">How long did the phone ring<u></u><u></u></span></b></p>

<p class="MsoNormal"><span lang="EN">How long the phone rang is determined either by the <b>hangup_time</b> or the <b>answered_time</b>: <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">if ( answered_time == 0 ) then<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">    length_of_phone_ringing = hangup_time - created_time<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">else<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">    length_of_phone_ringing = answered_time - created_time<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">end<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-bottom:12.0pt">

<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">  <u></u><u></u></span></p></div></div><br>_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>