hi, all recently, i face a GotoIfTime problem GotoIfTime("08:00:00-07:00:00,mon-sun,*,*?95040263008,start") as you can see the section is 08:00:00-07:00:00 , which is the begin time is later than the end time what's this refers then? in my test , my system time is 10:57:00, but this check will pass, although i guess i will not. is begin time later than the end time means * (all the day 24 hours)? Could you help me ? Thanks -- Thanks for your supporting, have a nice day. Sucan
On Thursday 01 July 2010 21:59:21 Zhang Shukun wrote:> hi, all > > recently, i face a GotoIfTime problem > > GotoIfTime("08:00:00-07:00:00,mon-sun,*,*?95040263008,start") > > as you can see the section is 08:00:00-07:00:00 , which is the begin > time is later than the end time > > what's this refers then? > > in my test , my system time is 10:57:00, but this check will pass, > although i guess i will not. > > is begin time later than the end time means * (all the day 24 hours)?No, it means 23 hours a day, excluding 7:00 a.m. to 8:00 a.m. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org
Hello list, how come when the time is 12:31:18, the GoToIfTime-statement evaluates to true ?? [Jul 30 12:31:18] -- Executing [s at macro-hours:42] GotoIfTime("SIP/TELin-00000067", "9:00-12:30|fri|*|*?exit") in new stack [Jul 30 12:31:18] -- Goto (macro-hours,s,58) The macro jumps to step 58, namely "exit". I would expect the GoToIfTime-statement evaluates to False and goes to the next step, no ?! Kind regards, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100730/0e9dcb6c/attachment.htm
Jonas Kellens wrote:> Hello list, > > how come when the time is 12:31:18, the GoToIfTime-statement evaluates > to true ?? > >As noted in the Wiki: "Times before Asterisk 1.6.2 are only accurate down to the 2-minute interval. So 12:01 is treated the same as 12:00. Starting with 1.6.2, times are accurate down to the minute. " Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."