I think you are looking for something like this (from my dial plan):
...
[incoming]
; First, let's do the holidays
exten => 888,1,GotoIfTime(*|*|1|jan?holiday,s,1)
exten => 888,2,GotoIfTime(*|*|1|jul?holiday,s,1)
exten => 888,3,GotoIfTime(*|*|1|aug?holiday,s,1)
exten => 888,4,GotoIfTime(*|*|11|nov?holiday,s,1)
exten => 888,5,GotoIfTime(16:00-23:59|*|24|dec?holiday,s,1)
exten => 888,6,GotoIfTime(*|*|25|dec?holiday,s,1)
exten => 888,7,GotoIfTime(15:00-23:59|*|31|dec?holiday,s,1)
; these are the days we're open
exten => 888,8,GotoIfTime(8:30-17:59|mon-fri|*|*?office-open,s,1)
; if we're not open, we're closed (duh!)
exten => 888,9,Goto(office-closed,s,1)
...
--
#Joseph
On Sat, 2005-08-27 at 19:41 -0600, Damon Estep wrote:> Does anyone know if gotoiftime can take any subset of 7 days for the
> days of the week or only a contiguous range?
>
>
>
> I want to use gotoiftime to change dialplan behavior on Monday,
> wedneday and Friday
>
>
>
> -- Executing GotoIfTime("Zap/8-1", "09:00-20:00|MON WED
FRI|?21")
> in new stack
>
> Aug 27 19:27:25 WARNING[2676]: pbx.c:3729 get_dow: Invalid day 'MON
> WED FRI', assuming none
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users