Note &#39;fsctl sync_clock&#39; immediately takes effect - which can affect the times on your CDRs. You can end up undrebilling/overbilling, or even calls hungup before they originated. If FS currently shows 1999 then your CDRs are going to show calls that lasted for 15 years!<div>

<br></div><div>&#39;fsctl sync_clock_when_idle&#39; is much safer, which does the same but doesn&#39;t take effect until there are 0 channels in use. That way it doesn&#39;t affect any CDRs.</div><div><br></div><div>-Steve<br>

<div><br></div><div><br><br><div class="gmail_quote">On 11 March 2013 00:50, Jeff Leung <span dir="ltr">&lt;<a href="mailto:jleung@v10networks.ca" target="_blank">jleung@v10networks.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div bgcolor="#CCCCCC" lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If memory serves me right, as soon as FreeSWITCH starts it gets the current time of the host and then keeps track of it independently from that point on. Having a date set way back to 1999 seems like the server has a malfunctioning RTC battery.<u></u><u></u></span></p>

<p class="MsoNormal"><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"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If you really want to fix this problem temporarily, you might want to run fsctl sync_clock to have FreeSWITCH resync the clock back to the correct time. Of course you can create a bunch of init scripts and have it to grab the correct time from a NTP server and then have FreeSWITCH to start after that.<u></u><u></u></span></p>

<p class="MsoNormal"><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 style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Philippe Le Toquin<br>

<b>Sent:</b> Sunday, March 10, 2013 5:26 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> [Freeswitch-users] Freeswitch is showing Incorrect time<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal">

<u></u> <u></u></p><p class="MsoNormal">Hello,<br><br>Not sure why but recently I noticed that Freeswitch is logging data with the wrong date<br><br>I noticed it first in the freeswitch log but I can see it also in the log that are display in the cli itself<br>

<br>the computer itself is ok<br><br>~# date<br>Sun Mar 10 20:13:05 EDT 2013<br><br>but :<br><br>freeswitch@internal&gt; version <br>FreeSWITCH Version 1.3.13b+git~20130108T204816Z~8e892abdef (git 8e892ab 2013-01-08 20:48:16Z)<br>

<br>freeswitch@internal&gt; strftime<br>1999-12-31 19:07:40<br><br>from freeswtich.log<br>1999-12-31 19:14:09.460477 [WARNING] sofia_reg.c:1506 SIP auth challenge (REGISTER) on sofia profile &#39;internal&#39; for [<a href="mailto:1000@xx.xx.xx.xx" target="_blank">1000@xx.xx.xx.xx</a>] from ip xx.xx.xx.xx<br>

<br><br>This is right after a reboot since I thought a reboot would may be fix it<br><br>where does FS takes its time from?<br><br>The last time it was correctly logged was on the 9th of March ! We had a power cut that caused the system to reboot<br>

<br>thanks<br><br>/Philippe<u></u><u></u></p></div></div></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>