Presentation rule (representative)
Description
A rule for presenting a number (and optionally displayname) when calling from one domain to another.
Allows you to determine which call initiator number a caller from another domain will see. And accordingly, where the callback will be routed to when pressed REDIAL.
It is used in cases of organizing a common number plan for several domains.
The representation search process consists of three consecutive stages, each of which, in case of success, interrupts the process, and in case of failure transfers control to the next stage.
(1) A matching CROSS rule is searched for in the domain of the called party.
(2) A matching INNER rule is searched for in the domain of the call forwarding subscriber.
(3) A matching INNER rule is searched for in the call initiator domain.
(4) In the first-level domain (relative to the domain of the call initiator), a suitable GLOBAL rule is searched for.
In case of failure at all stages, the number is substituted "undefined". By default, a rule is automatically added to newly created domains, substituting the initiator number without modification
The rules for configuring the global number plan should be guided by the sequence of steps given.
A customized set of presentation rules can be tested via diagnostic API.
Fields
{
"id": uuid,
"priority": int,
"dir": str,
"ofdomain": str,
"ofusername": str,
"ofnumber": str,
"fordomain": str,
"forusername": str,
"fornumber": str,
"action": str,
"modifier": str,
"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: |
Priority. A lower value means a higher priority. |
Field: |
Field: |
Call initiator domain filter mask. |
Field: |
Field: |
Call initiator number filter mask. |
Field: |
Called party domain filter mask. |
Field: |
Mask-filter username of the called party. |
Field: |
Mask-filter the number of the called party. |
Field: |
Field: |
Mask-filter username of the caller who forwarded the call. |
Field: |
Mask-filter the number of the caller who forwarded the call. |
Field: |
Action defined by rule. |
Field: |
Source number modifier. |
Field: |
Source name modifier in field DisplayName. |
Field: |
Field: |
|
Arbitrary header |
Field: |
Arbitrary comment |
Field: |
Tabular data for using filters (and modifiers) within a single rule search session. |
Field: |
Allows you to extend the compound with arbitrary keys and values |
Field: |
Object creation time |
Field: |
Filter variants by application
Value | Description |
---|---|
|
The rule applies only in the first step, in the domain of the called party. Produces a representation of accounts from other domains for the current domain. |
|
The rule applies:
|
|
|
|
|
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: |
Actions
Value | Description |
---|---|
|
Applies the rule of representation |
|
Aborts the current search step and transfers control to the next step |
Modes of modifier operation
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. |