<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Yes there was a reboot (power cut). But it is not the first time I reboot that box and the time was always good before.</blockquote>

<div><br></div>Which is why I mentioned when FS starts before/after NTP sets the date. If you haven&#39;t specified in your init.d/equivalent that FS depends on the time having been set then you may have a race condition on whether FS or NTP starts first.<div>

<br></div><div>Perhaps in previous reboots NTP won the race, but FS did this time. Or NTP failed on first startup, eg if there was an Internet outage at boot.<br><div><br></div><div>-Steve</div><div><br><div><br><br><div class="gmail_quote">

On 12 March 2013 12:41, Philippe Le Toquin <span dir="ltr">&lt;<a href="mailto:philippe@ppmt.org" target="_blank">philippe@ppmt.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div>Yes there was a reboot (power cut). But it is not the first time I reboot that box and the time was always good before.<br><br></div>May be an update to Debian changed the behaviour of the time setting. As time is not critical for me I am not too worried about it.<br>


<br></div>The important thing is that with the help from all of you, I ended looking a bit more into the CLI and managed to learn a bit. May be it is me but the cli is not the easiest<br></div>I ever played with :)<br><br>


<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 March 2013 04:49, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did it reboot?<div><br></div><div>Many embedded devices use NTP to get the correct date when they first boot. Until NTP sets the correct time they would show the wrong (default) time, and if FS starts before that gets set it could be using the incorrect time.</div>




<div><br></div><div>-Steve</div><div><div><div><br></div><div><br><br><div class="gmail_quote">On 11 March 2013 23:37, Philippe Le Toquin <span dir="ltr">&lt;<a href="mailto:philippe@ppmt.org" target="_blank">philippe@ppmt.org</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#CCCCCC">
    what is strange is that until 2 days ago it was fine and reporting
    the right time !<br>
    <br>
    anyway the fsctl sync_clock has done the trick!<br>
    <br>
    I will keep an eye on it and create a script to init it if needed<br>
    <br>
    Thanks all !<br>
    <br>
    <br>
    fsctl sync_clock <br>
    +OK clock synchronized<br>
    <br>
    2000-01-01 18:31:55.160499 [INFO] switch_time.c:476 Clock
    synchronized to system time.<br>
    2013-03-11 19:34:54.903637 [WARNING] switch_scheduler.c:114 Task was
    executed late by 416275370 seconds 1 heartbeat (core)<br>
    2013-03-11 19:34:54.903637 [WARNING] switch_scheduler.c:114 Task was
    executed late by 416275330 seconds 2 check_ip (core)<br>
    2013-03-11 19:34:54.903637 [WARNING] switch_scheduler.c:114 Task was
    executed late by 416274543 seconds 3 limit_hash_cleanup (mod_hash)<br>
    2013-03-11 19:34:56.503615 [NOTICE] sofia_reg.c:417 Registering
    VoipMS<br>
    2013-03-11 19:34:56.503615 [NOTICE] sofia_reg.c:417 Registering FPL<span><font color="#888888"><br>
    <br>
    <br>
    /Philippe</font></span><div><div><br>
    <br>
    <div>On 13-03-11 06:08 PM, Dmitry Lysenko
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>It seems Jeff is right. According to <a href="http://www.plugcomputer.org/plugforum/index.php?topic=1771.msg10761#msg10761" target="_blank">http://www.plugcomputer.org/plugforum/index.php?topic=1771.msg10761#msg10761</a></div>





        <div>Guruplug standart version does not have RTC battery.</div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div> Dmitry.</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/3/11 Jeff Leung <span dir="ltr">&lt;<a href="mailto:jleung@v10networks.ca" target="_blank">jleung@v10networks.ca</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div link="blue" vlink="purple" lang="EN-US">
              <div>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Embedded
                    devices at that scale probably don’t even feature a
                    battery or a way to preserve the RTC’s time. In that
                    case you’ll have to write a bunch more of init
                    scripts to force ntp to sync to the real time first
                    before starting any daemons up</span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
                <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
                    <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> Monday, March 11, 2013 11:44 AM<br>
                    <b>To:</b> FreeSWITCH Users Help<br>
                    <b>Subject:</b> Re: [Freeswitch-users] Freeswitch is
                    showing Incorrect time</span></p>
                <div>
                  <div>
                    <p class="MsoNormal">
                       </p>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>
                              <p class="MsoNormal" style="margin-bottom:12.0pt">Thanks all,</p>
                            </div>
                            <p class="MsoNormal" style="margin-bottom:12.0pt">I will check
                              the internal tonight. I actually use a
                              Guruplug running Debian. May that power
                              cut did something more than rebooting the
                              box :(</p>
                          </div>
                          <p class="MsoNormal">I will run  the command
                            to sync the clock. I am not too worried
                            about the CDRs since I am the only user on
                            this box. It is a home PBX</p>
                        </div>
                        <div>
                          <p class="MsoNormal" style="margin-bottom:12.0pt">
                            I really need to learn a bit more the CLI. I
                            tried to look but could not work a command
                            for it.</p>
                        </div>
                        <p class="MsoNormal" style="margin-bottom:12.0pt">15 years of
                          billing....I can see why a customer would be
                          upset :D</p>
                      </div>
                      <div>
                        <p class="MsoNormal">I will also check when
                          Freeswitch is started. I thought it was the
                          last one to start but may be not. </p>
                      </div>
                      <div>
                        <p class="MsoNormal"> </p>
                      </div>
                      <p class="MsoNormal">
                        /Philippe</p>
                    </div>
                    <div>
                      <p class="MsoNormal" style="margin-bottom:12.0pt"> </p>
                      <div>
                        <p class="MsoNormal">On 10 March 2013 20:37,
                          Andrew Latham &lt;<a href="mailto:lathama@gmail.com" target="_blank">lathama@gmail.com</a>&gt;
                          wrote:</p>
                        <div>
                          <div>
                            <p class="MsoNormal" style="margin-bottom:12.0pt">On Sun, Mar
                              10, 2013 at 8:25 PM, Philippe Le Toquin
                              &lt;<a href="mailto:philippe@ppmt.org" target="_blank">philippe@ppmt.org</a>&gt;
                              wrote:<br>
                              &gt; Hello,<br>
                              &gt;<br>
                              &gt; Not sure why but recently I noticed
                              that Freeswitch is logging data with the<br>
                              &gt; wrong date<br>
                              &gt;<br>
                              &gt; I noticed it first in the freeswitch
                              log but I can see it also in the log<br>
                              &gt; that are display in the cli itself<br>
                              &gt;<br>
                              &gt; the computer itself is ok<br>
                              &gt;<br>
                              &gt; ~# date<br>
                              &gt; Sun Mar 10 20:13:05 EDT 2013<br>
                              &gt;<br>
                              &gt; but :<br>
                              &gt;<br>
                              &gt; freeswitch@internal&gt; version<br>
                              &gt; FreeSWITCH Version
                              1.3.13b+git~20130108T204816Z~8e892abdef
                              (git 8e892ab<br>
                              &gt; 2013-01-08 20:48:16Z)<br>
                              &gt;<br>
                              &gt; freeswitch@internal&gt; strftime<br>
                              &gt; 1999-12-31 19:07:40<br>
                              &gt;<br>
                              &gt; from freeswtich.log<br>
                              &gt; 1999-12-31 19:14:09.460477 [WARNING]
                              sofia_reg.c:1506 SIP auth challenge<br>
                              &gt; (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<br>
                              &gt; xx.xx.xx.xx<br>
                              &gt;<br>
                              &gt;<br>
                              &gt; This is right after a reboot since I
                              thought a reboot would may be fix it<br>
                              &gt;<br>
                              &gt; where does FS takes its time from?<br>
                              &gt;<br>
                              &gt; The last time it was correctly logged
                              was on the 9th of March ! We had a<br>
                              &gt; power cut that caused the system to
                              reboot<br>
                              &gt;<br>
                              &gt; thanks<br>
                              &gt;<br>
                              &gt; /Philippe</p>
                          </div>
                        </div>
                        <p class="MsoNormal">
                          Check your hardware clock...<br>
                          <br>
                          man hwclock<br>
                          <span style="color:#888888"><br>
                            <span>--</span><br>
                            <span>~ Andrew &quot;lathama&quot; Latham <a href="mailto:lathama@gmail.com" target="_blank">lathama@gmail.com</a> <a href="http://lathama.net" target="_blank">http://lathama.net</a> ~</span></span></p>





                        <div>
                          <div>
                            <p class="MsoNormal"><br>
_________________________________________________________________________<br>
                              Professional FreeSWITCH Consulting
                              Services:<br>
                              <a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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></p>
                          </div>
                        </div>
                      </div>
                      <p class="MsoNormal"> </p>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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></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></div>