Dialogic® Vision™ CX Video Gateway Administration Manual
Creating routes
Pattern
Usage
(pattern)
Causes the pattern in parentheses and the matching substring to be stored in a
variable ($1, $2, ….) for subsequent substitution into the outgoing calling/called
number or from/to URI.
For example, the pattern 508(\d*) matches 5082711847 and sets the variable $1 =
2711847.
Use multiple enclosed patterns to store multiple matching substrings in different
variables.
For example, the pattern sip:(.*)@(.*) matches sip:
[email protected] and sets the variables $1 = 5082711847 and
$2 = gateway.dialogic.com.
Letters, digits,
Match what they represent.
and other
For example, the pattern 847 matches the area code in the number 8475558900
characters
and also matches the last three digits in [email protected].
Pattern generation expressions
The following table provides a description of the special variables and tokens used for
generating routing expressions in the To outgoing and From outgoing fields of the
gateway routing table:
Pattern
Usage
tel:
Must prefix the expression. Routes calls to the PSTN.
sip:
Must prefix the expression. Routes calls to a SIP destination.
reject
(Valid for the To outgoing column only.) Rejects calls that match the routing rule.
$
n
, where
n
is a
Inserts substrings into the routing expression, created while pattern matching the
numeric value
associated To incoming and From incoming fields. For more information, see the
row for (pattern) in
Pattern matching expressions
on page 68.
; (semicolon)
Indicates the end of the outgoing routing pattern and the start of call routing
parameters.
Call routing parameters are formatted as:
<
parameter
>:’<
parameter
value
>’
The following example routes the matched call to PSTN route 2:
tel:$1;route:’2’
Letters, digits,
Match what they represent.
and other
For example, the pattern 847 matches the area code in the number 8475558900
characters
and also matches the last three digits in [email protected].
Dialogic
69