FreeSWITCH中文网,电话机器人开发网 ,微信订阅号:

FreeSWITCH及VOIP,Openser,电话机器人等产品中文技术资讯、交流、沟通、培训、咨询、服务一体化网络。QQ群:293697898

FreeSwitch如何同步和操作系统的时间呢?


tags:FreeSwitch 同步时间 FSGUI 创建时间:2017-04-11 07:16:03

在使用FreeSwitch时,动不动和机器时钟时间不一致,所以引发别的问题,但一般还是会有提示的。

FS的开发者Anthony Minessale II 说:

FS is keeping it's own time using the monotonic clock in the kernel which is the same mechanism as the system time so your machine probably keeps bad time. Allowing any software to trust the system time is very dangerous. Something that was depending on the system time to calculate a duration etc can be considerably compromised if the time suddenly changes by hours or years in either direction. Things like daylights savings time can break CDR etc. The clock in FS is the onboard monotonic clock and the offset to real time is preserved. If you want FS to sync to system time when desired there are commands to perform this operation.

FS同步时间,在fs_cli中执行:

fsctl sync_clock

fsctl sync_clock_when_idle.



上海老李,QQ:1354608370,FreeSWITCH QQ群: