how to set a time group from december 23 to january 5

Hi all,

below is the image of my time group which i am using in time conditions. but this is not working for some reason, the time is not matching, can you please guide where i am wrong?
thanks

Please tell exactly when is open and when is closed?

Thanks Mo.

the time group start date is
25 December 9 am Thursday

and its end date is
5 Jan 9 am Monday

Note: I tried the same thing but it did not work, maybe its a bug in the PBX, I’m not sure.

I am assuming this is for a holiday schedule. If you want the system to start the Holiday mode on December 19th at 9:00 AM and end on January 1st at 8:00 AM, you must split the rule into three separate entries:

09:00 19 December 23:59 19 December
This starts the holiday at 9:00 AM and keeps it active for the rest of that specific day.

20 December - 31 December
Takes care of all the rest of the days from 00:00 to 23:59

00:00 1 January 07:59 1 January
This ensures the holiday mode ends exactly at 7:59 AM. At 8:00 AM, your office will be open again.

That should take care of you holiday.

Asterisk Time groups do not work like a continuous timeline. If you simply entered a Start Time of 09:00 and an End Time of 23:59 across the dates 19 Dec - 31 Dec, the system would apply those hours to every single day in that range.

This means that on December 20th, 21st, etc., the system would incorrectly ā€˜open’ from midnight until 9:00 AM. which is not what you want.

1 Like

Thanks hlev,

Please correct me if I’m wrong, what I understood is that there is a pattern, before starring and ending a range I have to use a specific day, please check below as per my understanding

09:00 19 December 23:59 19 December
This starts the holiday at 9:00 AM and keeps it active for the rest of that specific day.

20 December - 31 December
Takes care of all the rest of the days from 00:00 to 23:59

00:00 1 January 23:59 1 January
This starts the holiday at 0:00 AM and keeps it active for the rest of that specific day.

2 January - 4 January
Takes care of all the rest of the days from 00:00 to 23:59

00:00 5 January 9:00 5 January
This ensures the holiday mode ends exactly at 8:59 AM. At 9:00 AM, office will be open again.

Any time you want the full day, you dont need to specify time so the time is not needed for the the January 1 entry. You could have also configured the January entries to be only 2 one from Jan 1 to 4 and then the one for the 5th where you are setting the specific time range you want.00:00 to 08:59. I recommend your end you

I have to say that many of our end users struggle with these rules. The requirement to ā€œsplitā€ times and days in this way is quite counterintuitive.

I really hope the underlying logic can be revisited in the future. It places unnecessary strain on our technical resources, as we often need to assist users with what should be a simple task—setting two dates on a calendar.

That said, I understand that this is likely easier said than done, and I appreciate the work that goes into maintaining and improving the system.

:ok_hand:

That’s exactly how it’s done across several Asterisk based PBXs

Thanks all for your help. I appreciate it. I will try that provided solutions and see how it goes and will update here.