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.

install time conditions module in freepbx

Then click to confirm the installation

install time conditions module in freepbx 2

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.

adding a time group in freepbx

adding a time group in freepbx 2

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.

adding a time condition in freepbx

adding a time condition in freepbx 2

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

time condition destination in freepbx




Related posts:

  1. Blacklist a caller with FreePBX
  2. Using a callwithus DID with FreePBX/Asterisk
  3. Least Cost Routing (LCR) with Asterisk and A2Billing


Leave a comment