Time condition can be used to forward calls to different destinations based on the time, time of day, or the day of the month. This allows you to route calls based on your business hours, business days, and public holidays as well. This guide will look at an example of business hours and an example of a public holiday time condition.

To set up a Time condition you will need to drag in the Time condition object from the PBX toolbox on the left side of your PBX call flow.

To configure this object you will need to click on the settings icon in the bottom right corner of the Time condition object.

Note that you can change the timezone for a given time condition in the time condition settings. 


In the settings, you will be able to configure the conditions you wish to have calls analysed against. First, click on the blue button labeled Add time condition group. A Time condition group is a set of conditions that are analysed together.

Business hours time condition

To specify business hours, you will need to click the green plus button to add a time range. You'll get a prompt to select hours, day of week, day of month, or month. For business hours, you'll generally want hours and day of week. 

Once these time ranges are added, you will need to specify your business hours and business days, keeping in mind the hours is in 24-hour format. Common time ranges are 09:00-17:00 Monday-Friday, but your business requirements may differ.


If you have certain days of the week where the business has different hours (an early finish on Friday for example), you will need to add multiple time ranges to accommodate for the different times, as pictured below



When done, you will need to add this Time condition to your call flow. Note that the time condition has two exit points on it. When you link this object to another object in the flow, one of the links will say matches. This means this is the path an incoming call follows if it matches the time condition. EG if the call is within business hours

The second link will say doesn't match, meaning any calls outside of the time condition rules will follow this path. EG if the call is outside of business hours

Both of these will need to be linked to the appropriate objects in your call flow to ensure your requirements are met.


Holiday time condition

If adding a holiday time condition, you will need to click the green plus button to add a time range. Specifically the month and day of month ranges.

Note that in cases where the public holiday is not on the same date (for example, using the nearest available public holiday), you may also want to use the day of week time range, as this will prevent that time condition from automatically triggering in the next year. Below is an example of a time condition for Christmas and Boxing day 2019


If you have multiple holidays you want to set up, you will need to add multiple time ranges to accommodate for the different holidays.

Note: If your holiday spans more than one month (for example, Christmas-New year period), you will need multiple time groups as pictured below. Otherwise you may experience unexpected behaviour including extra days being matched.


When done, this will need to be linked to the call flow as well. As with the business hours time condition, there are two exit points to this object. When linked to other objects in your call flow, one will say matches, and the other doesn't matchMatches is for calls that are within the holiday periods you've selected, and doesn't match is for any calls that fall outside of those hours. Generally calls that don't match are then subjected to your business hours time condition as pictured below.


Don't forget to apply the configuration when you are done making changes to the time condition or any other objects in your call flow