# Overview

The **Conditions** page defines reusable tests for schedules, caller identity, channel usage, queue state, variables, authentication, and other routing decisions. Open it from **Configuration &gt; Conditions**.

The page works against the tenant currently selected in the top bar. The screenshots and demo rows were captured in the **Canistracci OIL** tenant.

<figure id="bkmrk-conditions-list-page">![Conditions list page filtered to documentation examples in the Canistracci OIL tenant.](https://manual.mirtapbx.com/uploads/images/gallery/2026-06/8A0conditions-list.png)<figcaption>Conditions list page filtered to documentation examples in the Canistracci OIL tenant.</figcaption></figure>## Working with conditions

<table id="bkmrk-taskhow-to-do-it-add"><thead><tr><th>Task</th><th>How to do it</th></tr></thead><tbody><tr><td>Add</td><td>Select New Condition, enter a name, choose the condition type, complete the type-specific fields, and select Save.</td></tr><tr><td>Edit</td><td>Open a condition by selecting its name in the list, change the fields, and select Save.</td></tr><tr><td>Duplicate</td><td>Use the duplicate action in the Actions column to copy an existing condition before changing it.</td></tr><tr><td>Delete</td><td>Select one or more rows and use Delete Selected, or open a condition and delete it after checking references.</td></tr><tr><td>Show flow</td><td>Use the flow action in the Actions column to inspect where the condition routes calls.</td></tr></tbody></table>

## Page functions

<table id="bkmrk-actiondescription-ne"><thead><tr><th>Action</th><th>Description</th></tr></thead><tbody><tr><td>New Condition</td><td>Opens the creation form for a new condition.</td></tr><tr><td>Delete Selected</td><td>Deletes selected conditions after confirmation.</td></tr><tr><td>Search</td><td>Filters the visible rows by name, type, condition summary, or action text.</td></tr><tr><td>Sort</td><td>Sorts the list by the selected column.</td></tr><tr><td>Page size</td><td>Changes how many conditions are shown per page.</td></tr></tbody></table>

## List columns

<table id="bkmrk-columndescription-se"><thead><tr><th>Column</th><th>Description</th></tr></thead><tbody><tr><td>Select</td><td>Selects a condition for bulk deletion.</td></tr><tr><td>Name</td><td>Condition display name. Select it to edit the condition.</td></tr><tr><td>Type</td><td>Condition type code used by MiRTA PBX.</td></tr><tr><td>Condition</td><td>Human-readable summary of the configured match rule.</td></tr><tr><td>Actions</td><td>Duplicate and flow-inspection actions for the row.</td></tr></tbody></table>

## Condition types

<table id="bkmrk-typepurposeexample-r"><thead><tr><th>Type</th><th>Purpose</th><th>Example record</th></tr></thead><tbody><tr><td>Weektime</td><td>Matches weekly recurring time slots, such as business hours or after-hours periods.</td><td>Docs Condition - Weektime</td></tr><tr><td>Calendar</td><td>Matches absolute date and time ranges for holidays, maintenance windows, and one-off closures.</td><td>Docs Condition - Calendar</td></tr><tr><td>Hours</td><td>Matches one or more daily time ranges without selecting specific weekdays.</td><td>Docs Condition - Hours</td></tr><tr><td>Simple Caller ID</td><td>Matches the caller number against one or more literal values or regular expressions.</td><td>Docs Condition - Simple Caller ID</td></tr><tr><td>Simple Caller ID Name</td><td>Matches the caller name against one or more literal values or regular expressions.</td><td>Docs Condition - Simple Caller ID Name</td></tr><tr><td>Weekday</td><td>Matches selected days of the week.</td><td>Docs Condition - Weekday</td></tr><tr><td>Date - exact match</td><td>Matches one or more exact dates or date/time values.</td><td>Docs Condition - Date - exact match</td></tr><tr><td>Date - lesser than date</td><td>Matches when the current date/time is earlier than the configured date/time.</td><td>Docs Condition - Date - lesser than date</td></tr><tr><td>Date - greater than date</td><td>Matches when the current date/time is later than the configured date/time.</td><td>Docs Condition - Date - greater than date</td></tr><tr><td>Date - between dates</td><td>Matches when the current date/time is between a configured start and end value.</td><td>Docs Condition - Date - between dates</td></tr><tr><td>Day of the month</td><td>Matches a specific day number in the month.</td><td>Docs Condition - Day of the month</td></tr><tr><td>Extension status</td><td>Matches the state of one selected extension or numbered flow.</td><td>Docs Condition - Extension status</td></tr><tr><td>Variable value</td><td>Matches a tenant user variable value.</td><td>Docs Condition - Variable value</td></tr><tr><td>Multiple variable values</td><td>Matches one variable against multiple possible values, each with its own destination path.</td><td>Docs Condition - Multiple variable values</td></tr><tr><td>System variable value</td><td>Matches an Asterisk or system channel variable value.</td><td>Docs Condition - System variable value</td></tr><tr><td>Multiple extensions status</td><td>Checks the combined state of multiple selected extensions.</td><td>Docs Condition - Multiple extensions status</td></tr><tr><td>AGI Script</td><td>Runs an AGI script and compares the AGIRESULT variable with TRUE.</td><td>Docs Condition - AGI Script</td></tr><tr><td>Authenticate</td><td>Prompts the caller for a PIN and matches when authentication succeeds.</td><td>Docs Condition - Authenticate</td></tr><tr><td>Tenant - number of I/O channels (external)</td><td>Matches when the tenant has more than the configured number of external channels in use.</td><td>Docs Condition - Tenant - number of I/O channels (external)</td></tr><tr><td>Tenant - number of any channels (internal and external)</td><td>Matches when the tenant has more than the configured number of total channels in use.</td><td>Docs Condition - Tenant - number of any channels (internal and external)</td></tr><tr><td>DID - number of inbound channels</td><td>Matches when a selected DID has more than the configured number of inbound channels in use.</td><td>Docs Condition - DID - number of inbound channels</td></tr><tr><td>Number of custom group channels</td><td>Matches when a custom channel group has more than the configured number of active channels.</td><td>Docs Condition - Number of custom group channels</td></tr><tr><td>Answering Machine Detection</td><td>Runs answering machine detection and matches according to the analysis result.</td><td>Docs Condition - Answering Machine Detection</td></tr><tr><td>SIP Header</td><td>Matches a SIP header against a regular expression.</td><td>Docs Condition - SIP Header</td></tr><tr><td>Agent logged in a queue</td><td>Matches when the selected agent is logged in to the selected queue.</td><td>Docs Condition - Agent logged in a queue</td></tr><tr><td>Agent paused from queue</td><td>Matches when the selected agent is paused in the selected queue.</td><td>Docs Condition - Agent paused from queue</td></tr><tr><td>Caller ID in Phonebook</td><td>Matches when caller ID is found in a selected phone book.</td><td>Docs Condition - Caller ID in Phonebook</td></tr><tr><td>Feature code parameter</td><td>Matches parameters collected by a feature code.</td><td>Docs Condition - Feature code parameter</td></tr><tr><td>All conditions listed satisfied</td><td>Matches only when every selected condition is satisfied.</td><td>Docs Condition - All conditions listed satisfied</td></tr><tr><td>Any conditions listed satisfied</td><td>Matches when at least one selected condition is satisfied.</td><td>Docs Condition - Any conditions listed satisfied</td></tr><tr><td>Negate condition result</td><td>Matches when the selected condition does not match.</td><td>Docs Condition - Negate condition result</td></tr><tr><td>Use a Global Condition</td><td>References a global condition from the tenant configuration.</td><td>Docs Condition - Use a Global Condition</td></tr><tr><td>Check SMS message</td><td>Matches SMS message content.</td><td>Docs Condition - Check SMS message</td></tr><tr><td>Check if a specific channel is running</td><td>Checks whether a channel matching the configured attributes is currently running.</td><td>Docs Condition - Check if a specific channel is running</td></tr><tr><td>Multiple destination over weektime</td><td>Routes to different destinations based on a color-coded weekly timetable.</td><td>Docs Condition - Multiple destination over weektime</td></tr><tr><td>Call Screening using a random PIN</td><td>Screens a call by playing a prompt and asking the caller to enter a generated PIN.</td><td>Docs Condition - Call Screening using a random PIN</td></tr><tr><td>Caller has already called in</td><td>Checks recent inbound call history for the current caller.</td><td>Docs Condition - Caller has already called in</td></tr><tr><td>Caller has been called out</td><td>Checks recent outbound call history for the current caller.</td><td>Docs Condition - Caller has been called out</td></tr><tr><td>Queue Callers, more than</td><td>Matches when a selected queue has more than the configured number of callers waiting.</td><td>Docs Condition - Queue Callers, more than</td></tr></tbody></table>

## Demo records

The Canistracci OIL tenant contains one documentation example for each available condition type: 39 records with names beginning with **Docs Condition -**. A global example named **Docs Global Condition - Weektime** is also available for the Use a Global Condition type.

## Deleting records

Before deleting a condition, check call flows, destinations, schedules, IVRs, feature codes, and reports that may reference it. MiRTA PBX asks for confirmation before the delete is submitted.