Date intervals as "time intervals"

Hello,
I’m using a very old version of Asterisk (I can’t update at the moment)

Asterisk Build:

Asterisk/1.8.15-cert3
Asterisk GUI-version : SVN–r5219M

I was wondering if with this setup is possible to create “time intervals” based of interval of dates, for example from 3 nov till 20 dec, every day. I can only seem to decide days of the month or hour intervals.

Thanks

You would have to use multiple tests.

ExecIfTime(*,*,3-30,nov?Playback(tt-monkeys))

ExecIfTime(*,*,1-20,dec?Playback(tt-weasels))
1 Like

Thanks it worked perfectly. I just put your code in my extensions.conf

timeinterval_Christmas1 = *,*,24-31,dec,*
timeinterval_Christmas2 = *,*,1-6,jan,*

and I could use it directly in the GUI :slight_smile: