Holiday Time Group

What is the correct way to add the New Years Holiday to my Holiday time group?

I entered…
start day - 31
start month - December
end day - 2
end month - January
This is what happened…
– Executing [[email protected]:3] NoOp(“IAX2/voipstreet2_in-11427”, “TIMENOW: 19:34,Thu, 2,Dec”) in new stack
– Executing [[email protected]:4] NoOp(“IAX2/voipstreet2_in-11427”, “TIMEMATCHED: TRUE”) in new stack
– Executing [[email protected]:5] GotoIfTime(“IAX2/voipstreet2_in-11427”, “,,31-2,dec-jan?truestate”) in new stack

Is this expected ? or do I need to do 2 different holidays ?

Asterisk 18.6.0

At least at the Asterisk level, each field is evaluated independently, so you will need distinct rules for the December and January parts. I think your current rule matches 1 Dec, 2 Dec, 31 Dec, 1 Jan. 2 Jan and 31 Jan.

If the underlying code is not “year aware” I would suggest one rule up to HNY and another one after HNY

Thanks Dicko… I think that will be the easiest option

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.