holiday.cs not working anymore?

guidoq

Advanced Certified
Joined
Apr 14, 2021
Messages
98
Reaction score
59
I've been using the script before, but the past week we had two holidays and I'm receiving complaints from customers that they are receiving calls during the holiday.

I set up the holiday in all departments
1748854922352.png

added the holiday.cs script for each trunk

1748855007880.png

but the call goes through without playing the holiday prompt.

2025/06/02 11:05:30.506|0012|Info| [_3CX.Script] _hol_rubano_18.PlayDestinationHolidayPromptBeforeRouting.2618.[C:193.2]-Script result - 'False'
2025/06/02 11:05:30.506|0012|Info| [_3CX.Script] _hol_rubano_18.PlayDestinationHolidayPromptBeforeRouting.2618.[C:193.2]-Returning False

I have tested this before last update and it was working fine.
 
Assume you've specified the holiday days in office hours?
 
yeah, the problem was that the default route of the trunk was set to a CFD script.

I'm about 60% sure that in a previous release the script was working even if the route was set to a call flow script, but I don't have previous releases anymore to test.

Also I found out that if I have a trunk with multiple DIDs, the DIDs routing to extensions will play the holiday prompt. Most of our customers with 01234xxx dids want the main number to say they are closed, but be available to receive direct calls, however the option to set inbound rules to follow global holidays is not there anymore.

I'll handle the holidays in the CFD script directly, that should solve it
the downside is that the users will not be able to set the holidays by themselves
 
Last edited:

Latest Posts

Forum statistics

Threads
111,962
Messages
589,993
Members
164,867
Latest member
swegner