Routing a call based on time of day with FreePBX
There are several steps involved with routing a call based on time-of-day in FreePBX but it’s quite flexible.
The first thing you need to do is install the “Time Conditions” module. To do this click on the “Tools” tab in FreePBX and then click “Module Admin”. Select the Time Conditions module, click “Download and Install” and then scroll down and click Process.

Then click to confirm the installation

Now you need to create a Time Group. You need to decide a way to split the time you want separate conditions to apply to your call in two. For example, in the Time Group below, I want one thing to happen to the call if it’s between 9-5 on a weekday and something else to happen to the call if it’s not during these times. Also, when doing this part, it is important to check that your server time is set correctly. This should be shown in the top right hand corner of the screen.


Next we need to create a time condition. This will determine what will happen to the call when it meets/doesn’t meet the time group conditions above. My calls are going to be forwarded to x1000 if it is during office hours (9-5) and forwarded to the voicemail of that extension if it is outside of those times.


Now, if you go to create an inbound route for your DID you will see a new destination – your new Time Condition

Related posts:
- Blacklist a caller with FreePBX
- Using a callwithus DID with FreePBX/Asterisk
- Least Cost Routing (LCR) with Asterisk and A2Billing

Leave a comment