I’m running the most recent 1.2 and am having an issue with GotoIfTime. Here is the code in question
exten => s,4,GotoIfTime(*|*|1|jan?closed,s,1)
exten => s,n,GotoIfTime(*|*|4|jul?closed,s,1)
exten => s,n,GotoIfTime(*|*|7|sep?closed,s,1)
exten => s,n,GotoIfTime(*|*|26|nov?closed,s,1)
exten => s,n,GotoIfTime(*|*|27|nov?closed,s,1)
exten => s,n,GotoIfTime(*|*|28|nov?closed,s,1)
exten => s,n,GotoIfTime(*|*|25|dec?closed,s,1)
exten => s,n,GotoIfTime(*|*|26|dec?closed,s,1)
exten => s,n,GotoIfTime(*|*|27|dec?closed,s,1)
exten => s,n,GotoIfTime(00:00-09:04|mon-fri|*|*?closed,s,1)
exten => s,n,GotoIfTime(16:53-23:59|mon-fri|*|*?closed,s,1)
exten => s,n,GotoIfTime(00:00-10:04|sat|*|*?closed,s,1)
exten => s,n,GotoIfTime(13:53-23:59|sat|*|*?closed,s,1)
exten => s,n,GotoIfTime(*|sun|*|*?closed,s,1)
Now today is Dec 02, but Asterisk seems to be confused about the day of the month. An incoming call has the following console output:
-- Executing Set("SIP/5060-082df4a0", "GROUP(s)=incoming") in new stack
-- Executing NoOp("SIP/5060-082df4a0", " 3 ") in new stack
-- Executing GotoIf("SIP/5060-082df4a0", "0?333") in new stack
-- Executing GotoIfTime("SIP/5060-082df4a0", "*|*|1|jan?closed|s|1") in new stack
-- Executing GotoIfTime("SIP/5060-082df4a0", "*|*|4|jul?closed|s|1") in new stack
-- Executing GotoIfTime("SIP/5060-082df4a0", "*|*|7|sep?closed|s|1") in new stack
-- Executing GotoIfTime("SIP/5060-082df4a0", "*|*|26|nov?closed|s|1") in new stack
-- Executing GotoIfTime("SIP/5060-082df4a0", "*|*|27|nov?closed|s|1") in new stack
-- Executing GotoIfTime("SIP/5060-082df4a0", "*|*|28|nov?closed|s|1") in new stack
-- Executing GotoIfTime("SIP/5060-082df4a0", "*|*|25|dec?closed|s|1") in new stack
-- Goto (closed,s,1)
Can anyone see syntax or other problems that would confuse Asterisk about what day today is? if I comment out the ‘dec’ line from the dialplan then the call proceeds as desired. Any help is appreciated.