Difference between revisions of "Asterisk displays wrong time"

From Kolmisoft Wiki
Jump to navigationJump to search
(New page: It has been reported, when system moves to another time (summer <-> winter) asterisk still using old time, even when time is changed in system itself. Solution: make sure you have a right ...)
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
It has been reported, when system moves to another time (summer <-> winter) asterisk still using old time, even when time is changed in system itself. Solution: make sure you have a right time running, by copying correct zoneinfo file from /usr/share/zoneinfo/ to /etc/localtime and then reboot your machine when you don't have any active calls (you can check any active calls by entering 'rasterisk' and then typing 'core show channels').
It has been reported, when system moves to another time (summer <-> winter) asterisk still using old time, even when time is changed in system itself.  
 
Solution: make sure you have a right time running, '''by copying correct zoneinfo file from /usr/share/zoneinfo/ to /etc/localtime'''  
 
Example:
cp /usr/share/zoneinfo/Europe/Vilnius /etc/localtime
 
Then run:
 
ntpdate ntp.ubuntu.com
 
This will switch system time to "Europe/Vilnius".
 
Sometimes asterisk requires restart to use new date. We recommend our script which will stop new incoming calls, bills and then stop those calls which are in progress.
 
/usr/src/mor/sh_scripts/asterisk_nice_restart.sh

Latest revision as of 11:17, 23 September 2009

It has been reported, when system moves to another time (summer <-> winter) asterisk still using old time, even when time is changed in system itself.

Solution: make sure you have a right time running, by copying correct zoneinfo file from /usr/share/zoneinfo/ to /etc/localtime

Example:

cp /usr/share/zoneinfo/Europe/Vilnius /etc/localtime

Then run:

ntpdate ntp.ubuntu.com

This will switch system time to "Europe/Vilnius".

Sometimes asterisk requires restart to use new date. We recommend our script which will stop new incoming calls, bills and then stop those calls which are in progress.

/usr/src/mor/sh_scripts/asterisk_nice_restart.sh