[asterisk-users] Dailplan code for holiday detection?
Scott L. Lykens
slykens at verimedservices.com
Tue Dec 23 15:14:54 CST 2008
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
More information about the asterisk-users
mailing list