[asterisk-users] Simple Time of Day Branching problem

Jim Hankins jim at allpointsmediaworks.com
Tue Sep 15 06:28:07 CDT 2009


Yes but I also have different hours for tue,thu and wed,fri. In the  
o'reilly book
I have, it shows examples of using & to group them, but I am getting  
the error.
Sent from my iPhone

On Sep 14, 2009, at 11:25 PM, Paul Hales <pdhales at optusnet.com.au>  
wrote:

>
> It's easier to work with the closed hours then - use a goto just for
> Sunday/Monday
>
> PaulH
>
>
> James Hankins wrote:
>> 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
>>
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> 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 --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list