Forwarding rule (redirectrule)
Description
Forwarding rule assigned to the numbers (of SIP user accounts).
Applied by the role server B2BUA when making calls to SIP users' internal numbers.
Includes several types of routing: absolute, by no registered devices and various unsuccessful responses from called devices.
Cascade forwarding can be applied sequentially A → B → C → D.
Filtering by call initiator number is supported.
Limitations
-
The collection is not available in the master domain.
-
When using a SIP user account in queues as a resource, simultaneous forwarding can be detrimental to queue principles.
-
Does not apply to forwarding configured on the SIP device itself and initiated by receiving SIP responses with codes `3xx`.
Fields
{
"id": uuid,
"type": str,
"filter_number": str,
"tran_number": str,
"priority": int,
"enabled": intbool,
"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: |
Depending on the type selected, the rule can be applied under different conditions and at different points in the device call process. If several account devices are called in parallel, in case of failure, the so-called best result is selected from all received SIP response codes: 603, 486, 6xx, 5xx, 4xx. |
Field: |
Filter mask of the number to which the forwarding rule belongs. |
Field: |
Mask-filter of the number from which the call is being made. |
Field: |
Forwarding number-destination modifier. |
Field: |
Priority. A lower value means a higher priority. |
Field: |
Switch. The rule only applies if it is enabled. |
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 within a single rule search session. |
Field: |
Allows you to extend the compound with arbitrary keys and values |
Field: |
Object creation time |
Field: |
Time of last modification of the object |
Types of conditions for application of forwarding rules
Value | Description |
---|---|
|
The forwarding rule is always valid. It is applied before the call starts. |
|
The forwarding rule applies if the account has no registered devices at the time of the call. It is applied before the call starts. |
|
The forwarding rule takes effect after receiving a response matched in the general settings with the result Busy. Default SIP response code |
|
The call forwarding rule is effective after receiving the expiration of the allowed call time (by default 30 seconds, or set in the settings of the SIP-user account), or receiving a response |
|
The forwarding rule takes effect after receiving a response matched in the general settings with the result Rejected. Default SIP response code |
|
The forwarding rule takes effect after receiving a response mapped to DND (Do Not Disturb) in the general settings. The default SIP response codes are as follows |
|
The forwarding rule is in effect after errors are detected during calls. |
|
The forwarding rule takes effect after receiving SIP responses that are not matched with other types of results. |
Filter operation modes
Mode | Description |
---|---|
|
The value to be subjected to the conformance check is passed through the filter character by character.
If it is necessary to specify one of the service characters as a target character, it should be enclosed in square brackets, e.g. For example, |
|
The
Field values in the table can be used as field values:
The tabular modifier may be used in combination with other character mode control commands. For example, |
|
The pattern is applied to the original value Pattern. The structure of a regex pattern value: For example,- significance:
All standard regular expression rules can be applied when forming Pattern patterns. |
|
The value subject to compliance checking is a numeric integer and is within the specified numeric range. The structure of the dia-template value: For example,- significance: |
Modes of modifier operation
Mode | Description |
---|---|
|
The initial value is posymbolic with accumulation passes through the specified modifier. |
|
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 |