Routing rule (vectorrule)
Description
A rule for routing phone calls and state subscriptions applied in the second stage of a two-stage routing process (after the vector selection step).
The rules are analyzed in a strictly defined order corresponding to the priorities of the rules within the vector. Rule analysis is performed through matching conditions to query parameters, and is applied when all filters are passed.
Determines the action and can modify the request parameters, preparing them for the next phase of the routing process.
The configured set of routing vectors and rules can be tested through the diagnostic API.
Limitations
-
The collection is not available in the master domain.
-
At each call, after the vector is defined at the previous routing step, all rules belonging to the vector are analyzed - query parameters are matched with filter masks. This can adversely affect the overall performance when the number of rules within a vector is large.
Fields
{
"id": uuid,
"vector": str,
"priority": str,
"action": str,
"dir": str,
"fromnumber": str,
"fromdomain": str,
"fromextaccount": str,
"tonumber": str,
"todomain": str,
"toextaccount": str,
"modfromnumber": str,
"modtonumber": str,
"schedule": str,
"periods": array<object>,
"opts": {
"title": str,
"comment": str
},
"ext": {
"ct": date,
"lwt": date
}
}
Specification | Description |
---|---|
Field: |
Identifier. Can be specified at creation, otherwise generated by the system. |
Field: |
Code vector to which this rule applies |
Field: |
The priority of a rule within a vector. When the priorities of multiple rules match, they are checked and applied in random order. A lower value means a higher priority. |
Field: |
Applicable action |
Field: |
Filter based on call initiator environment |
Field: |
Source number filter mask. |
Field: |
Source Domain Filter Mask. |
Field: |
Field: |
Field: |
Field: |
The destination domain to which the routing process should be sent when the corresponding action is selected (cross) |
Field: |
The account code of the SIP telephony provider through which to send the call to the external destination when the corresponding action is selected (external). "Field: |
Source number modifier. |
Field: |
Destination number modifier. |
Field: |
Field: |
Specifies the activity schedule of the rule. |
Field: |
Activity interval during the week. |
Field: |
Field: |
|
Arbitrary header |
Field: |
Arbitrary comment |
Field: |
Tabular data for using filters (and modifiers) within a single rule search session. |
Field: |
Switch to the next highest priority matching rule when the current rule application fails. |
Field: |
Allows you to extend the compound with arbitrary keys and values |
Field: |
Object creation time |
Field: |
Action
Value | Description |
---|---|
|
Reject the call |
|
To route a call to an external account (ESG role), you must additionally specify toextaccount |
|
Route the call to an extension or group number in the current domain |
|
Route the call to an extension in the current domain with the extension applied (read more) |
|
To route a call to another domain |
|
To route a call to a service defined by subscriber feature codes. The specific CAF is determined by mapping the number to the featurecode entities in the domain. |
|
Apply number modification rules and re-route based on the new parameters |
The environment of the call initiator
Value | Description |
---|---|
|
The rule can only be applied to calls initiated within the current domain |
|
The rule can only be applied to calls that came in from the outside through a provider account in the current domain |
|
The rule can only be applied to calls coming from another domain |
|
No filter is applied, the rule is suitable for all call initiator environments |
Filter operation modes
Modes of operation of modifiers
Mode | Description |
---|---|
|
The initial value is posymbolic with accumulation passes through the specified modifier.
For example,- significance: |
|
The The table serves as a bundle of several filter fields and modifiers. Based on the sequential check of filters, there are fewer rows in the table, taking into account the detected matches. The tabular modifier may be used in combination with other character mode control commands. |
|
The Pattern pattern with Opts options is applied to the original value and the detected block(s) are replaced with the pattern Replace. The general structure of the regex modifier value: Options may be omitted, or may contain any combination of characters:
For example,- significance: When forming Pattern and Replace patterns, all standard regular expression rules can be applied, including capture groups, backward lookup, substitution of named groups, etc. |
Work schedule
Value | Description |
---|---|
|
The rule is available for use at all times |
|
The rule is not available for use ever |
|
The rule is available for use only during business hours |
|
The rule is only available for use outside of business hours |
|
The rule defines a customized availability schedule in the |
Weekly schedule list item
Field | Value | Description |
---|---|---|
|
|
Day of the week of the start of the segment ( |
|
|
Day of the week of the end of the segment ( |
|
|
Intraday segment start time in minutes |
|
|
Intraday segment end time in minutes |