Direct DID call - missed call notification outside office hours

easycom

Gold Partner
Advanced Certified
Joined
Apr 16, 2009
Messages
14
Reaction score
4
I use call forwarding - exceptions on the extension level to direct traffic to an out office message (IVR) after office hours for users with a direct external DID. However this leaves a missed call notification in the 3cx apps for all calls outside of office hours. The extensions don't ring to be clear, only a missed call notification shows. A possible workaround, though time consuming to configure and maintain, is to create a ring group per user. This eliminates the option to setup specific office hours for a user, requiring setting up multipe departments for single users. Can anybody suggest a simpler solution?
 
You could use the timebasedcalling script to send the calls to the required destination accordingly.

1741270842153.png

This would allow you to create the routing for each of your DIDs, while keeping the fnctionality of the extensions. There is no need for a Ring Group.
 
Hi Nicholas, thank you for the suggestion. I've done a quick test and ran the code through copilot (since i'm not good a reading code) and asked it to change the office hours + add a destination for in (my exension) and out of office hours (ivr extension). While the in office hours routing works, the out of office hours does not. I've added the code for your information. I'm sure the code is wrong and can be fixed to do what I want, and I can certainly see the upside for complex scenario's. But for basic call routing what I'm trying to achieve here, and was very simple in v18, is this not overly complex?
 

Attachments

Have alook at the example script that we provide. It will intercept the calls after office hours and send them to 801.

You just need to change the hours the script will run, and where the calls will be sent to.
 
Hi Nicolas, I understand you can set the office hours for these DID's and set the destination for these hours. However the DID is also removed from the extension. That beats the purpose as the calls will no longer be routed to the users during office hours. Again, this should't be so complex. The more I'm reading the forums, the more I see other admins strugling with this. Anything on the roadmap to simplify this?
 
Just route the DIDs to your script and do the routing from there.

You have a lot of flexibility by using the scripts.
 
  • Like
Reactions: Evolute IT
Can you please tell me where to configure the extension during office hours?

the instructions in the script are to
1. configure date & time starting on line 31. These are the the times the calls will be intercepted
2. configure the destination dn: the system extension where the calls will be routed when intercepted

* Time Base Call Routing - Use code with caution!
* Calls will be intercepted and redirected to the specified DestinationDN during the following times:
* Monday to Sunday: 5:30 PM to 7:00 AM
* The current destination DN is set to "801" modify destination to any system extension or extension you want.
*
* INSTRUCTIONS
* - Configure Date & Time (Line 31)
* - Change the destination DN, and modify the value of the constant DestinationDN to any destination you want to route call (Line 26).

I can't find the setting to define the extenion when the call is not supposed to be intercepted.

I can find that default CallerID routing should be applied. But that doesnt exist since I've added the DID to the script...

MyCall.Info($"{CallerID} -> {DIDNumber}@{currentTime}: Default CallerID/DID based routing will be applied");

Please correct me if I'm wrong.
 

Latest Posts

Forum statistics

Threads
111,964
Messages
590,006
Members
164,870
Latest member
nizammoktar