Not the most elegant but since I have a generic context for my IVRs I
simple check the date there.
exten => s,n,GotoIfTime(*|*|1|jan?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|10|apr?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|25|may?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|3|jul?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|7|sep?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|26|nov?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|27|nov?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|25|dec?closed-holiday|1)
exten => s,n,GotoIfTime(*|*|26|dec?closed-holiday|1)
exten =>
closed-holiday,1,Background(ivr-closed-holiday-${AUTOATTENDANT}||)
exten => closed-holiday,n,Hangup
This is next year's holidays for us but with this year's Christmas days
in it.
sl
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users