[Asterisk-Users] Holiday Scheduling

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri May 23 14:03:16 MST 2003


On Friday 23 May 2003 02:49 pm, Derek Beaumont wrote:
> I want to edit my dialplan to change messages depending on whether
> or not it is a holiday.
>
> I have found only one example of this, but the syntax is not
> explained.
>
> The example is:
> include=>holiday||||1|jan|
>
> I know that this would use the holiday context on the first of
> January, but why are there 4 pipes before 1

There should only be 3 pipes before the 1.

> What is the exact syntax of this?

<name-of-context>|<timerange>|<weekday-range>|<mday-range>|<month-range>

See /usr/src/asterisk/configs/extensions.conf.sample

> Let's say that I want to use the holiday context on Jan 1, Oct 31,
> and Dec 31.  How would I write that into my dialplan?

include => holiday|*|*|1|jan
include => holiday|*|*|31|oct
include => holiday|*|*|31|dec

-Tilghman




More information about the asterisk-users mailing list