The reason it does not stay synced is because if the time changes mid call it would break cdrs.

I think there is some param or command line switch to sync to system time but its generally a bad idea.


On Tue, Feb 20, 2018 at 7:13 AM Brian West <brian@freeswitch.com> wrote:
10 seconds in a month is rather good to hear.

On Tue, Feb 20, 2018 at 3:41 AM, Shaun Stokes <shaun.stokes@itec-support.co.uk> wrote:
If you're using FreeSWITCH in a virtual environment we've had similar issues when using FreeSWITCH on a Hyper-V VM, the time on the VM seems to run at a slightly difference pace. When the VM syncs with the host FreeSWITCH doesn't pick this up.

We found using sync_clock fixed this which we run daily as a scheduled task which executes the command 'fsctl sync_clock_when_idle' via Event Socket API, also disabled the time sync between the VM and switched to NTP.

It would be useful if FreeSWITCH would execute this command every 24 hours out of the box, I can't think of any circumstances where this behaviour wouldn't be desired.

Shaun
________________________________________
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of 王聡 <cong.wang.itsherpa@gmail.com>
Sent: 20 February 2018 09:08
To: FreeSWITCH Users Help
Subject: [Freeswitch-users] The time on FreeSWITCH is faster than server time

Hey all,

Recently I noticed a clock problem on my FS server, the time in fs_cli had about 10sec faster than server time(correct time), so I executed sync_clock to correct it.
This server had run about 1 month, and I wonder if I need to make sync_clock per month, and how to fix this clock problem.

Regards.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

______________________________________________________________________
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.
______________________________________________________________________

______________________________________________________________________
This message has been checked for all known viruses by  MessageLabs Virus Scanning Service.
______________________________________________________________________



--

Brian West | Co-founder and Developer

Need Commercial support? email sales@freeswitch.com

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045

Email: brian@freeswitch.com

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com

color-facebook-96.pngcolor-twitter-96.png

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--