Create a Time Condition¶
A Time Condition checks the current time against a Time Group and branches the call: one destination if it's "in time" (matched), another if "out of time" (no match). Most commonly used to send after-hours calls to voicemail or a closed-greeting recording.
Before You Start¶
- A Time Group exists that defines your business hours (see Create a Time Group).
- Both destinations are set up: where calls go during business hours, and where they go after hours.
Steps¶
- Go to System Attributes → Time Conditions.
- Click Add Time Condition.
- Fill in:
- Time Condition name — e.g.
Business Hours. - Time Group — pick the Time Group you created.
- Destination matches — what to do during business hours (e.g.
IVR → Main IVR). - Destination non-matches — what to do after hours (e.g.
Voicemail → 1001 (Unavailable)or an "after hours" announcement).
- Time Condition name — e.g.
- Override Code Pin (optional) — a feature code to manually flip the condition (handy for early closures).
- Click Submit.
- Click Apply Config.
Use the Time Condition¶
Point an inbound route's destination at Time Conditions → Business Hours. The route now obeys your hours.
Verify¶
- Call during business hours — should hit the match destination.
- Call after hours — should hit the non-match destination.
- To test without waiting: temporarily edit the Time Group to make the current time fall outside, or use the BLF/Override feature codes (look up
Time Condition Overridein System Attributes → Feature Codes).
Common Issues¶
- Always goes to "non-match." The system clock is wrong, or the Time Group's days don't include today. Run
dateon the FreePBX host and check the Time Group. - Holiday issue. Time Conditions don't have a holiday concept. Stack a second Time Condition for holidays above the regular one, or use the Calendar module.
- Manual override stuck. Dial the Time Condition Override feature code to clear it (default
*271<id>), or open the TC and click Reset.