It is common for routing of calls to be different, depending upon the time of day or day of the week. The FreeSWITCH XML dialplan has a number of parameters to allow this functionality.
Determine the parameters for your routing. In this example, we will define business hours as Monday through Friday, 8AM to 5PM. Additionally, we will add a
day_part variable to reflect morning (midnight to noon), afternoon (noon to 5PM), or evening (6PM to midnight).
Create an extension at the beginning of your dialplan by following these steps:
<extension name="Time of day, day of week setup" continue="true"> <condition wday="2-6" hour="8-17" break="never"> ...