CheckDate
Description (v1.4.1)
This action routes an incoming call as a function of time, day and month.
If the current time falls within the defined time window, the call is routed to "extension_ok".
If the current time falls outside the defined time window, the call is routed to "extension_nok".
Start Hour: [start_hour]
Stop Hour: [stop_hour]
Start Day: [start_day]
Stop Day: [stop_day]
First day of the month: [start_day_of_the_month]
Last day of the month: [stop_day_of_the_month]
Current month: [month_of_the_year]
Release notes
Version 1.4.1 - General deployment
- Improvement: added the possibility to specify '*' for start and stop hour (M6408)
Version 1.4 - General deployment
- Improvement: Compatibility with the Communication Server module
Version 1.03 - General deployment
- Improvement: Added possibilities to use variables for the days of the week
- Feature: Allowed skipping hour check by entering *
Version 1.02 - General deployment
Version 1.01 - General deployment
Action parameters
- Start Hour, Stop Hour: the hours are expressed in a 24 hours scheme, i.e. 8AM is 08:00, 3PM is 15:00, midnight is 00:00
- Start Day, Stop Day: any day of the week, expressed as mon, tue, ..., sun
- First day of the month, Last day of the month: any day of he month, expressed as an integer 1 ... 31
- Current month: month, expressed as Jan, Feb, ..., Dec. Use '*' to select ANY month
Example of use
The following configuration implements standard office hours:
- Start Hour: 09:00
- Stop Hour: 18:00
- Start Day: mon
- Stop Day: fri
- First day of the month: 1
- Last day of the month: 31
- Current Month: *
... and it should be read as follows:
If the current time is between 09:00 (9 AM) and 18:00 (6 PM), the current day is a weekday (mon-fri), the day is any day of the month and the month is any month of the year, then the 'ok' extension is triggered.
Date & time check in detail
Each called CheckDate action will perform a sequence of checks to determine if a call falls within the determined range. If one of the checks returns a negative result, CheckDate will send the call to the 'nok' branch. In more detail:
- Does the call happen during the chosen Current Month? If so, move on. If not, go to the 'nok' branch.
- Does the call happen during or after the chosen First day of the month AND during or before the chosen Last day of the month ? If so, move on. If not, go to the 'nok' branch.
- Does the call happen during or after the chosen Start Day AND during or before the chosen Stop Day ? If so, move on. If not, go to the 'nok' branch.
- Does the call happen during or after the chosen Start Hour AND during or before the chosen Stop Hour ? If so, move on. If not, go to the 'nok' branch.