[asterisk-users] Simple Time of Day Branching problem

James Hankins jim at allpointsmediaworks.com
Mon Sep 14 22:15:38 CDT 2009


Greetings folks,  new to this, trying to get the syntax correct for a  
day of week routing.


exten => 345,1,Answer()
exten => 345,n,GotoIfTime(10:00-17:00|tue&thu&sat|*|*?open,345,1)
exten => 345,n,GotoIfTime(10:00-19:00|wed&fri|*|*?open,345,1)
exten => 345,n,Playback(afterhours)
exten => 345,n,Hangup()

I'll get an error stating incorrect day of week "tue&thur&sat",  
assuming none

What is the correct syntax for this?  We have longer hours on  
Wednesday and Fridays and we're closed Sunday/Monday

Just trying to automate the time of day greeting etc.

Thanks




More information about the asterisk-users mailing list