Skip to main content

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 > 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.

Conditions list page filtered to documentation examples in the Canistracci OIL tenant.
Conditions list page filtered to documentation examples in the Canistracci OIL tenant.

Working with conditions

TaskHow to do it
AddSelect New Condition, enter a name, choose the condition type, complete the type-specific fields, and select Save.
EditOpen a condition by selecting its name in the list, change the fields, and select Save.
DuplicateUse the duplicate action in the Actions column to copy an existing condition before changing it.
DeleteSelect one or more rows and use Delete Selected, or open a condition and delete it after checking references.
Show flowUse the flow action in the Actions column to inspect where the condition routes calls.

Page functions

ActionDescription
New ConditionOpens the creation form for a new condition.
Delete SelectedDeletes selected conditions after confirmation.
SearchFilters the visible rows by name, type, condition summary, or action text.
SortSorts the list by the selected column.
Page sizeChanges how many conditions are shown per page.

List columns

ColumnDescription
SelectSelects a condition for bulk deletion.
NameCondition display name. Select it to edit the condition.
TypeCondition type code used by MiRTA PBX.
ConditionHuman-readable summary of the configured match rule.
ActionsDuplicate and flow-inspection actions for the row.

Condition types

TypePurposeExample record
WeektimeMatches weekly recurring time slots, such as business hours or after-hours periods.Docs Condition - Weektime
CalendarMatches absolute date and time ranges for holidays, maintenance windows, and one-off closures.Docs Condition - Calendar
HoursMatches one or more daily time ranges without selecting specific weekdays.Docs Condition - Hours
Simple Caller IDMatches the caller number against one or more literal values or regular expressions.Docs Condition - Simple Caller ID
Simple Caller ID NameMatches the caller name against one or more literal values or regular expressions.Docs Condition - Simple Caller ID Name
WeekdayMatches selected days of the week.Docs Condition - Weekday
Date - exact matchMatches one or more exact dates or date/time values.Docs Condition - Date - exact match
Date - lesser than dateMatches when the current date/time is earlier than the configured date/time.Docs Condition - Date - lesser than date
Date - greater than dateMatches when the current date/time is later than the configured date/time.Docs Condition - Date - greater than date
Date - between datesMatches when the current date/time is between a configured start and end value.Docs Condition - Date - between dates
Day of the monthMatches a specific day number in the month.Docs Condition - Day of the month
Extension statusMatches the state of one selected extension or numbered flow.Docs Condition - Extension status
Variable valueMatches a tenant user variable value.Docs Condition - Variable value
Multiple variable valuesMatches one variable against multiple possible values, each with its own destination path.Docs Condition - Multiple variable values
System variable valueMatches an Asterisk or system channel variable value.Docs Condition - System variable value
Multiple extensions statusChecks the combined state of multiple selected extensions.Docs Condition - Multiple extensions status
AGI ScriptRuns an AGI script and compares the AGIRESULT variable with TRUE.Docs Condition - AGI Script
AuthenticatePrompts the caller for a PIN and matches when authentication succeeds.Docs Condition - Authenticate
Tenant - number of I/O channels (external)Matches when the tenant has more than the configured number of external channels in use.Docs Condition - Tenant - number of I/O channels (external)
Tenant - number of any channels (internal and external)Matches when the tenant has more than the configured number of total channels in use.Docs Condition - Tenant - number of any channels (internal and external)
DID - number of inbound channelsMatches when a selected DID has more than the configured number of inbound channels in use.Docs Condition - DID - number of inbound channels
Number of custom group channelsMatches when a custom channel group has more than the configured number of active channels.Docs Condition - Number of custom group channels
Answering Machine DetectionRuns answering machine detection and matches according to the analysis result.Docs Condition - Answering Machine Detection
SIP HeaderMatches a SIP header against a regular expression.Docs Condition - SIP Header
Agent logged in a queueMatches when the selected agent is logged in to the selected queue.Docs Condition - Agent logged in a queue
Agent paused from queueMatches when the selected agent is paused in the selected queue.Docs Condition - Agent paused from queue
Caller ID in PhonebookMatches when caller ID is found in a selected phone book.Docs Condition - Caller ID in Phonebook
Feature code parameterMatches parameters collected by a feature code.Docs Condition - Feature code parameter
All conditions listed satisfiedMatches only when every selected condition is satisfied.Docs Condition - All conditions listed satisfied
Any conditions listed satisfiedMatches when at least one selected condition is satisfied.Docs Condition - Any conditions listed satisfied
Negate condition resultMatches when the selected condition does not match.Docs Condition - Negate condition result
Use a Global ConditionReferences a global condition from the tenant configuration.Docs Condition - Use a Global Condition
Check SMS messageMatches SMS message content.Docs Condition - Check SMS message
Check if a specific channel is runningChecks whether a channel matching the configured attributes is currently running.Docs Condition - Check if a specific channel is running
Multiple destination over weektimeRoutes to different destinations based on a color-coded weekly timetable.Docs Condition - Multiple destination over weektime
Call Screening using a random PINScreens a call by playing a prompt and asking the caller to enter a generated PIN.Docs Condition - Call Screening using a random PIN
Caller has already called inChecks recent inbound call history for the current caller.Docs Condition - Caller has already called in
Caller has been called outChecks recent outbound call history for the current caller.Docs Condition - Caller has been called out
Queue Callers, more thanMatches when a selected queue has more than the configured number of callers waiting.Docs Condition - Queue Callers, more than

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.