Re: [asterisk-users] time on asterisk
Hi, I don't know what i'm doing wrong but i already reinstalled the system. still using ubuntu 64-bit. made sure i had the correct local date time. then did all this: ntpdate pool.ntp.org tzselect , i chose Asia/SIngapore /etc/timezone is Asia/Singapore i added TZ='Asia/Singapore'; export TZ to /etc/profile. date shows the correct date, i rebooted, date still shows the correct date. then installed zaptel, ./configure, make menuselect, make make install make config then libpri make make install then asterisk, ./configure, make menuselect, make, make install, make samples then asterisk-addons, ./configure make menuselect, make make install make samples then run asterisk, then connect via asterisk -r [Jun 13 00:25:58] NOTICE[5159]: chan_sip.c:15075 handle_request_register: Registration from '11002 sip:[EMAIL PROTECTED]' failed for '202..156.117.155' - No matching peer found [Jun 13 00:26:02] NOTICE[5159]: chan_sip.c:15075 handle_request_register: Registration from '11002 sip:[EMAIL PROTECTED]' failed for '202..156.117.155' - No matching peer found log shows June 13 00:25 my system date shows /home/ronald# date Fri Jun 13 15:33:03 SGT 2008 i installed everything as root via sudo su, how come i still dont get the correct time? really need help on this one. thank you regards nhadie --- On Fri, 6/13/08, Lee, John (Sydney) [EMAIL PROTECTED] wrote: From: Lee, John (Sydney) [EMAIL PROTECTED] Subject: Re: [asterisk-users] time on asterisk To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Date: Friday, June 13, 2008, 1:22 AM i'm using 64-bit Ubuntu Server Edition 8.04 I just use GMT+0, but i'm on Singapore whcih should be at GMT+8, but if i use GMT+8 the system does not give the correct time. You should actually be using Asia/Singapure rather than guess. i'm not using ntp, coz when i do i also don't get the correct time. That's because you have an incorrect timezone set. I am also using gotoiftime in my IVR but I don't have any problems. 1) Install the distro and specify the timezone 2) Set the correct time in linux 3) Install ntp 4) Sync the time by ntpdate ntp will always just sync using GMT time but the timezone specified in the distro will provide the time difference and daylight savings. That is it! Also, can someone clarify if Asterisk really uses a different time than the system time? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
On Friday 13 June 2008 02:35:09 Nhadie Ramos wrote: Hi, I don't know what i'm doing wrong but i already reinstalled the system. still using ubuntu 64-bit. made sure i had the correct local date time. then did all this: ntpdate pool.ntp.org tzselect , i chose Asia/SIngapore /etc/timezone is Asia/Singapore i added TZ='Asia/Singapore'; export TZ to /etc/profile. date shows the correct date, i rebooted, date still shows the correct date. then installed zaptel, ./configure, make menuselect, make make install make config then libpri make make install then asterisk, ./configure, make menuselect, make, make install, make samples then asterisk-addons, ./configure make menuselect, make make install make samples then run asterisk, then connect via asterisk -r [Jun 13 00:25:58] NOTICE[5159]: chan_sip.c:15075 handle_request_register: Registration from '11002 sip:[EMAIL PROTECTED]' failed for '202..156.117.155' - No matching peer found [Jun 13 00:26:02] NOTICE[5159]: chan_sip.c:15075 handle_request_register: Registration from '11002 sip:[EMAIL PROTECTED]' failed for '202..156.117.155' - No matching peer found log shows June 13 00:25 my system date shows /home/ronald# date Fri Jun 13 15:33:03 SGT 2008 i installed everything as root via sudo su, how come i still dont get the correct time? The only thing I can think of is that your zoneinfo files are not in the right place. Does the file /usr/share/zoneinfo/Asia/Singapore exist? Also, does a symlink exist from that file to /etc/localtime? -- Tilghman ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
Hi Sir, what i did is reinstall (again) but this time using debian 32-bit. and now i get the time correctly. so i'm not sure if it's a prob with ubuntu or asterisk, or asterisk on ubuntu, or asterisk on ubuntu 64-bit. coz i dont know how to figure those out. but anyway debian+asterisk works fine. thanks to all your reply! regards ron --- On Fri, 6/13/08, Tilghman Lesher [EMAIL PROTECTED] wrote: From: Tilghman Lesher [EMAIL PROTECTED] Subject: Re: [asterisk-users] time on asterisk To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Date: Friday, June 13, 2008, 12:31 PM On Friday 13 June 2008 02:35:09 Nhadie Ramos wrote: Hi, I don't know what i'm doing wrong but i already reinstalled the system. still using ubuntu 64-bit. made sure i had the correct local date time. then did all this: ntpdate pool.ntp.org tzselect , i chose Asia/SIngapore /etc/timezone is Asia/Singapore i added TZ='Asia/Singapore'; export TZ to /etc/profile. date shows the correct date, i rebooted, date still shows the correct date. then installed zaptel, ./configure, make menuselect, make make install make config then libpri make make install then asterisk, ./configure, make menuselect, make, make install, make samples then asterisk-addons, ./configure make menuselect, make make install make samples then run asterisk, then connect via asterisk -r [Jun 13 00:25:58] NOTICE[5159]: chan_sip.c:15075 handle_request_register: Registration from '11002 sip:[EMAIL PROTECTED]' failed for '202..156.117.155' - No matching peer found [Jun 13 00:26:02] NOTICE[5159]: chan_sip.c:15075 handle_request_register: Registration from '11002 sip:[EMAIL PROTECTED]' failed for '202..156.117.155' - No matching peer found log shows June 13 00:25 my system date shows /home/ronald# date Fri Jun 13 15:33:03 SGT 2008 i installed everything as root via sudo su, how come i still dont get the correct time? The only thing I can think of is that your zoneinfo files are not in the right place. Does the file /usr/share/zoneinfo/Asia/Singapore exist? Also, does a symlink exist from that file to /etc/localtime? -- Tilghman ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
On Fri, Jun 13, 2008 at 07:31:45AM -0500, Tilghman Lesher wrote: The only thing I can think of is that your zoneinfo files are not in the right place. Does the file /usr/share/zoneinfo/Asia/Singapore exist? Also, does a symlink exist from that file to /etc/localtime? This can be verified with 'zdump -v /etc/localtime' $ zdump -v /usr/share/zoneinfo/Asia/Singapore /usr/share/zoneinfo/Asia/Singapore Fri Dec 13 20:45:52 1901 UTC = Sat Dec 14 03:41:17 1901 SMT isdst=0 gmtoff=24925 /usr/share/zoneinfo/Asia/Singapore Sat Dec 14 20:45:52 1901 UTC = Sun Dec 15 03:41:17 1901 SMT isdst=0 gmtoff=24925 /usr/share/zoneinfo/Asia/Singapore Wed May 31 17:04:34 1905 UTC = Wed May 31 23:59:59 1905 SMT isdst=0 gmtoff=24925 /usr/share/zoneinfo/Asia/Singapore Wed May 31 17:04:35 1905 UTC = Thu Jun 1 00:04:35 1905 MALT isdst=0 gmtoff=25200 /usr/share/zoneinfo/Asia/Singapore Sat Dec 31 16:59:59 1932 UTC = Sat Dec 31 23:59:59 1932 MALT isdst=0 gmtoff=25200 /usr/share/zoneinfo/Asia/Singapore Sat Dec 31 17:00:00 1932 UTC = Sun Jan 1 00:20:00 1933 MALST isdst=1 gmtoff=26400 /usr/share/zoneinfo/Asia/Singapore Tue Dec 31 16:39:59 1935 UTC = Tue Dec 31 23:59:59 1935 MALST isdst=1 gmtoff=26400 /usr/share/zoneinfo/Asia/Singapore Tue Dec 31 16:40:00 1935 UTC = Wed Jan 1 00:00:00 1936 MALT isdst=0 gmtoff=26400 /usr/share/zoneinfo/Asia/Singapore Sun Aug 31 16:39:59 1941 UTC = Sun Aug 31 23:59:59 1941 MALT isdst=0 gmtoff=26400 /usr/share/zoneinfo/Asia/Singapore Sun Aug 31 16:40:00 1941 UTC = Mon Sep 1 00:10:00 1941 MALT isdst=0 gmtoff=27000 /usr/share/zoneinfo/Asia/Singapore Sun Feb 15 16:29:59 1942 UTC = Sun Feb 15 23:59:59 1942 MALT isdst=0 gmtoff=27000 /usr/share/zoneinfo/Asia/Singapore Sun Feb 15 16:30:00 1942 UTC = Mon Feb 16 01:30:00 1942 JST isdst=0 gmtoff=32400 /usr/share/zoneinfo/Asia/Singapore Tue Sep 11 14:59:59 1945 UTC = Tue Sep 11 23:59:59 1945 JST isdst=0 gmtoff=32400 /usr/share/zoneinfo/Asia/Singapore Tue Sep 11 15:00:00 1945 UTC = Tue Sep 11 22:30:00 1945 MALT isdst=0 gmtoff=27000 /usr/share/zoneinfo/Asia/Singapore Sun Aug 8 16:29:59 1965 UTC = Sun Aug 8 23:59:59 1965 MALT isdst=0 gmtoff=27000 /usr/share/zoneinfo/Asia/Singapore Sun Aug 8 16:30:00 1965 UTC = Mon Aug 9 00:00:00 1965 SGT isdst=0 gmtoff=27000 /usr/share/zoneinfo/Asia/Singapore Thu Dec 31 16:29:59 1981 UTC = Thu Dec 31 23:59:59 1981 SGT isdst=0 gmtoff=27000 /usr/share/zoneinfo/Asia/Singapore Thu Dec 31 16:30:00 1981 UTC = Fri Jan 1 00:30:00 1982 SGT isdst=0 gmtoff=28800 /usr/share/zoneinfo/Asia/Singapore Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 11:14:07 2038 SGT isdst=0 gmtoff=28800 /usr/share/zoneinfo/Asia/Singapore Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 11:14:07 2038 SGT isdst=0 gmtoff=28800 -- Tzafrir Cohen icq#16849755 jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
Hi Sir, I tried restarting asterisk, but still it has the wrong time. I tried restarting the system, then start asterisk it still uses the wrong time. I also tried recompiling asterisk, checked i have the correct time on the system,nbsp; then restart the system then start asterisk but still i get the wrong time. My system time (currently) Thu Jun 12 15:12:11 GST 2008 on asterisk i use EPOCH to look at the time, nbsp; NoOp(SIP/105101-00857e60, DATE: 20080612-081147) i would really appreciate any help. TIA ron --- On Thu, 6/12/08, Tilghman Lesher lt;[EMAIL PROTECTED]gt; wrote: From: Tilghman Lesher lt;[EMAIL PROTECTED]gt; Subject: Re: [asterisk-users] time on asterisk To: Asterisk Users Mailing List - Non-Commercial Discussion lt;asterisk-users@lists.digium.comgt; Date: Thursday, June 12, 2008, 1:42 AM On Wednesday 11 June 2008 17:52:15 Nhadie Ramos wrote: gt; I'm using gotoiftime on asterisk, but it seemsamp;nbsp; there is a difference gt; between the asterisk time and the system time. could it be because i gt; adjusted the system timezone on my linux? do asterisk not detect the change gt; of timezone on the system? How can I fix this prob? Yes, that's probably the reason. The system timezone is cached once at startup, for performance reasons. The only way to get it to pick up the new timezone is a restart. -- Tilghman ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
Nhadie Ramos wrote: Hi Sir, I tried restarting asterisk, but still it has the wrong time. I tried restarting the system, then start asterisk it still uses the wrong time. I also tried recompiling asterisk, checked i have the correct time on the system, then restart the system then start asterisk but still i get the wrong time. My system time (currently) Thu Jun 12 15:12:11 GST 2008 on asterisk i use EPOCH to look at the time, NoOp(SIP/105101-00857e60, DATE: 20080612-081147) i would really appreciate any help. TIA ron --- On *Thu, 6/12/08, Tilghman Lesher /[EMAIL PROTECTED]/* wrote: From: Tilghman Lesher [EMAIL PROTECTED] Subject: Re: [asterisk-users] time on asterisk To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Date: Thursday, June 12, 2008, 1:42 AM On Wednesday 11 June 2008 17:52:15 Nhadie Ramos wrote: I'm using gotoiftime on asterisk, but it seemsnbsp; there is a difference between the asterisk time and the system time. could it be because i adjusted the system timezone on my linux? do asterisk not detect the change of timezone on the system? How can I fix this prob? Yes, that's probably the reason. The system timezone is cached once at startup, for performance reasons. The only way to get it to pick up the new timezone is a restart. -- Tilghman Ron, What OS/Distro are you using ? What timezone are you using ? Do you use NTP for syncing time/date? /Mats ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
hi mats, i'm using 64-bit Ubuntu Server Edition 8.04 I just use GMT+0, but i'm on Singapore whcih should be at GMT+8, but if i use GMT+8 the system does not give the correct time. i'm not using ntp, coz when i do i also don't get the correct time. i'm not sure how i can fix this, is this an ubuntu issue? regards, ron --- On Thu, 6/12/08, mkn0014 lt;[EMAIL PROTECTED]gt; wrote: From: mkn0014 lt;[EMAIL PROTECTED]gt; Subject: Re: [asterisk-users] time on asterisk To: [EMAIL PROTECTED], Asterisk Users Mailing List - Non-Commercial Discussion lt;asterisk-users@lists.digium.comgt; Date: Thursday, June 12, 2008, 8:20 AM Nhadie Ramos wrote: gt; Hi Sir, gt; gt; I tried restarting asterisk, but still it has the wrong time. gt; gt; I tried restarting the system, then start asterisk it still uses the gt; wrong time. gt; gt; I also tried recompiling asterisk, checked i have the correct time on gt; the system, then restart the system then start asterisk but still i gt; get the wrong time. gt; gt; My system time (currently) Thu Jun 12 15:12:11 GST 2008 gt; gt; on asterisk i use EPOCH to look at the time, gt; NoOp(SIP/105101-00857e60, DATE: 20080612-081147) gt; gt; i would really appreciate any help. TIA gt; gt; ron gt; gt; --- On *Thu, 6/12/08, Tilghman Lesher gt; /lt;[EMAIL PROTECTED]gt;/* wrote: gt; gt; From: Tilghman Lesher lt;[EMAIL PROTECTED]gt; gt; Subject: Re: [asterisk-users] time on asterisk gt; To: Asterisk Users Mailing List - Non-Commercial Discussion gt; lt;asterisk-users@lists.digium.comgt; gt; Date: Thursday, June 12, 2008, 1:42 AM gt; gt; On Wednesday 11 June 2008 17:52:15 Nhadie Ramos wrote: gt; gt; I'm using gotoiftime on asterisk, but it seemsamp;nbsp; there is a difference gt; gt; between the asterisk time and the system time. could it be because i gt; gt; adjusted the system timezone on my linux? do asterisk not detect the change gt; gt; of timezone on the system? How can I fix this prob? gt; gt; Yes, that's probably the reason. The system timezone is cached once at gt; startup, for performance reasons. The only way to get it to pick up the new gt; timezone is a restart. gt; gt; -- gt; Tilghman gt; gt; Ron, What OS/Distro are you using ? What timezone are you using ? Do you use NTP for syncing time/date? /Mats ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
GMT timezone does not have daylight savings, so probably this is why you have the wrong time Select a timezone for a city and usually the correct daylight parameters are used Stelios S. Koroneos Digital OPSiS - Embedded Intelligence http://www.digital-opsis.com http://www.digital-opsis.com/ _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nhadie Ramos Sent: Thursday, June 12, 2008 12:00 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] time on asterisk hi mats, i'm using 64-bit Ubuntu Server Edition 8.04 I just use GMT+0, but i'm on Singapore whcih should be at GMT+8, but if i use GMT+8 the system does not give the correct time. i'm not using ntp, coz when i do i also don't get the correct time. i'm not sure how i can fix this, is this an ubuntu issue? regards, ron --- On Thu, 6/12/08, mkn0014 [EMAIL PROTECTED] wrote: From: mkn0014 [EMAIL PROTECTED] Subject: Re: [asterisk-users] time on asterisk To: [EMAIL PROTECTED], Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Date: Thursday, June 12, 2008, 8:20 AM Nhadie Ramos wrote: Hi Sir, I tried restarting asterisk, but still it has the wrong time. I tried restarting the system, then start asterisk it still uses the wrong time. I also tried recompiling asterisk, checked i have the correct time on the system, then restart the system then start asterisk but still i get the wrong time. My system time (currently) Thu Jun 12 15:12:11 GST 2008 on asterisk i use EPOCH to look at the time, NoOp(SIP/105101-00857e60, DATE: 20080612-081147) i would really appreciate any help. TIA ron --- On *Thu, 6/12/08, Tilghman Lesher /[EMAIL PROTECTED]/* wrote: From: Tilghman Lesher [EMAIL PROTECTED] Subject: Re: [asterisk-users] time on asterisk To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Date: Thursday, June 12, 2008, 1:42 AM On Wednesday 11 June 2008 17:52:15 Nhadie Ramos wrote: I'm using gotoiftime on asterisk, but it seemsnbsp; there is a difference between the asterisk time and the system time. could it be because i adjusted the system timezone on my linux? do asterisk not detect the change of timezone on the system? How can I fix this prob? Yes, that's probably the reason. The system timezone is cached once at startup, for performance reasons. The only way to get it to pick up the new timezone is a restart. -- Tilghman Ron, What OS/Distro are you using ? What timezone are you using ? Do you use NTP for syncing time/date? /Mats ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
On Thu, Jun 12, 2008 at 01:59:51AM -0700, Nhadie Ramos wrote: hi mats, i'm using 64-bit Ubuntu Server Edition 8.04 I just use GMT+0, but i'm on Singapore whcih should be at GMT+8, but if i use GMT+8 the system does not give the correct time. You should actually be using Asia/Singapure rather than guess. i'm not using ntp, coz when i do i also don't get the correct time. That's because you have an incorrect timezone set. -- Tzafrir Cohen icq#16849755 jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
hi sir, i forgot to mention it was originally at Asia/Singapore, when i noticed that asterisk has a wrong time, that's why i tried GMT instead. regards, Ron Tzafrir Cohen wrote: On Thu, Jun 12, 2008 at 01:59:51AM -0700, Nhadie Ramos wrote: hi mats, i'm using 64-bit Ubuntu Server Edition 8.04 I just use GMT+0, but i'm on Singapore whcih should be at GMT+8, but if i use GMT+8 the system does not give the correct time. You should actually be using Asia/Singapure rather than guess. i'm not using ntp, coz when i do i also don't get the correct time. That's because you have an incorrect timezone set. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] time on asterisk
I am also having this problem using includes based on time of day, however the restart did not help and when enabled it finds no context with extension 's'. This is for my incoming calls, see below...Any Ideas! [default] include =extensions include = after|18:00-7:29|mon-fri|*|* include = during|7:30-17:59|mon-fri|*|* ;include = after|*|sat|*|* ;include = after|*|sun|*|* ;always on;;; ;exten = s,1,Answer ;off ;exten = s,2,Background(/tmp/afterhours) ;on ;exten =s,2,dial(sip/202sip/203,20) ;exten=s,3,hangup() ;maingreeting [during] exten = s,1,Answer exten = s,2,SetMusicOnHold(default) exten =s,3,Set(TIMEOUT(DIGIT)=3) exten = s,4,Background(/tmp/maingreeting) exten =s,5,waitexten(5) exten =s,6,dial(sip/201,20|t)) exten =s,7,hangup() exten = 1,1,Goto(dental,s,1) exten =1,2,hangup() exten = 2,1,dial(zap/g2/322) exten = 2,2,voicemail(u322)) exten =2,3,hangup() exten = 3,1,dial(sip/241,20) exten = 3,2,voicemail(u241) exten =3,3,hangup() exten = 4,1,Goto(medical,s,1) exten =4,2,hangup() exten = 6,1,dial(sip/232,20) exten = 6,2,voicemail(u232) exten =6,3,hangup() exten = 7,1,Goto(admin,s,1) exten =7,2,hangup() exten = 0,1,dial(sip/201,20) exten = 0,2,voicemail(u201) exten =0,3,hangup() ;;;Nightmode [after] exten = s,1,Answer exten =s,2,Set(TIMEOUT(DIGIT)=2) exten = s,3,Background(/tmp/afterhours) exten =s,4,waitexten(10) exten =s,5,hangup() exten =5,1,Dial(zap/g1/,20) exten =5,2,hangup() ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
hi sir, i forgot to mention it was originally at Asia/Singapore, when i noticed that asterisk has a wrong time, that's why i tried GMT instead. regards, Ron --- On Thu, 6/12/08, Stelios Koroneos lt;[EMAIL PROTECTED]gt; wrote: From: Stelios Koroneos lt;[EMAIL PROTECTED]gt; Subject: RE: [asterisk-users] time on asterisk To: [EMAIL PROTECTED], 'Asterisk Users Mailing List - Non-Commercial Discussion' lt;asterisk-users@lists.digium.comgt; Date: Thursday, June 12, 2008, 9:33 AM GMT timezone does not have daylight savings, so probably this is why you have the wrong time Select a timezone for a city and usually the correct daylight parameters are used nbsp; Stelios S. Koroneos Digital OPSiS - Embedded Intelligence http://www.digital-opsis.com nbsp; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nhadie Ramos Sent: Thursday, June 12, 2008 12:00 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] time on asterisk hi mats, i'm using 64-bit Ubuntu Server Edition 8.04 I just use GMT+0, but i'm on Singapore whcih should be at GMT+8, but if i use GMT+8 the system does not give the correct time. i'm not using ntp, coz when i do i also don't get the correct time. i'm not sure how i can fix this, is this an ubuntu issue? regards, ron --- On Thu, 6/12/08, mkn0014 lt;[EMAIL PROTECTED]gt; wrote: From: mkn0014 lt;[EMAIL PROTECTED]gt; Subject: Re: [asterisk-users] time on asterisk To: [EMAIL PROTECTED], Asterisk Users Mailing List - Non-Commercial Discussion lt;asterisk-users@lists.digium.comgt; Date: Thursday, June 12, 2008, 8:20 AM Nhadie Ramos wrote: gt; Hi Sir, gt; gt; I tried restarting asterisk, but still it has the wrong time. gt; gt; I tried restarting the system, then start asterisk it still uses the gt; wrong time. gt; gt; I also tried recompiling asterisk, checked i have the correct time on gt; the system, then restart the system then start asterisk but still i gt; get the wrong time. gt; gt; My system time (currently) Thu Jun 12 15:12:11 GST 2008 gt; gt; on asterisk i use EPOCH to look at the time, gt; NoOp(SIP/105101-00857e60, DATE: 20080612-081147) gt; gt; i would really appreciate any help. TIA gt; gt; ron gt; gt; --- On *Thu, 6/12/08, Tilghman Lesher gt; /lt;[EMAIL PROTECTED]gt;/* wrote: gt; gt; From: Tilghman Lesher lt;[EMAIL PROTECTED]gt; gt; Subject: Re: [asterisk-users] time on asterisk gt; To: Asterisk Users Mailing List - Non-Commercial Discussion gt; lt;asterisk-users@lists.digium.comgt; gt; Date: Thursday, June 12, 2008, 1:42 AM gt; gt; On Wednesday 11 June 2008 17:52:15 Nhadie Ramos wrote: gt; gt; I'm using gotoiftime on asterisk, but it seemsamp;nbsp; there is a difference gt; gt; between the asterisk time and the system time. could it be because i gt; gt; adjusted the system timezone on my linux? do asterisk not detect the change gt; gt; of timezone on the system? How can I fix this prob? gt; gt; Yes, that's probably the reason. The system timezone is cached once at gt; startup, for performance reasons. The only way to get it to pick up the new gt; timezone is a restart. gt; gt; -- gt; Tilghman gt; gt; Ron, What OS/Distro are you using ? What timezone are you using ? Do you use NTP for syncing time/date? /Mats ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
i'm using 64-bit Ubuntu Server Edition 8.04 I just use GMT+0, but i'm on Singapore whcih should be at GMT+8, but if i use GMT+8 the system does not give the correct time. You should actually be using Asia/Singapure rather than guess. i'm not using ntp, coz when i do i also don't get the correct time. That's because you have an incorrect timezone set. I am also using gotoiftime in my IVR but I don't have any problems. 1) Install the distro and specify the timezone 2) Set the correct time in linux 3) Install ntp 4) Sync the time by ntpdate ntp will always just sync using GMT time but the timezone specified in the distro will provide the time difference and daylight savings. That is it! Also, can someone clarify if Asterisk really uses a different time than the system time? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] time on asterisk
Hi, I'm using gotoiftime on asterisk, but it seemsnbsp; there is a difference between the asterisk time and the system time. could it be because i adjusted the system timezone on my linux? do asterisk not detect the change of timezone on the system? How can I fix this prob? Regards, nhadie ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] time on asterisk
On Wednesday 11 June 2008 17:52:15 Nhadie Ramos wrote: I'm using gotoiftime on asterisk, but it seemsnbsp; there is a difference between the asterisk time and the system time. could it be because i adjusted the system timezone on my linux? do asterisk not detect the change of timezone on the system? How can I fix this prob? Yes, that's probably the reason. The system timezone is cached once at startup, for performance reasons. The only way to get it to pick up the new timezone is a restart. -- Tilghman ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users