Dialogic® Vision™ CX Video Gateway Administration Manual
Gateway routing table examples
Converting PSTN numbers for country code
This example illustrates how incoming PSTN numbers are converted to full
international (US eleven-digit) format.
•
Eleven-digit numbers are passed through as is.
•
Ten-digit numbers insert the US country code (1).
•
Seven-digit numbers insert both the area code (847) and country code (1).
ID
To incoming
From
Mode
To outgoing
From outgoing
incoming
1
tel:(\d{11})$
tel:(\d{11})$
Route
sip:$1@gateway
2
tel:(\d{10})$
tel:(\d{10})$
Route
sip:1$1@gateway
3
tel:(\d{7})$
tel:(\d{7})$
Route
sip:1847$1@gateway
The following rules are used in this example:
Rule
Description
1
Matches and captures any PSTN calling/called numbers containing exactly eleven digits, and
insert the numbers into SIP From/To headers.
2
Matches and captures any PSTN calling/called numbers containing exactly ten digits, prefixes
one (1), and inserts the resulting numbers into SIP From/To headers.
3
Matches and captures any PSTN calling/called numbers containing exactly seven digits, prefixes
1847, and inserts the resulting numbers into SIP From/To headers.
Sample Input/Output: Incoming PSTN call
Calling: tel:8479258900 => sip:18479258900@gateway (rule 2 match)
Called: tel:8472711000 => sip:[email protected]
Calling: tel:9258900 => sip:18479258900@gateway (rule 3 match)
Called: tel:2711000 => sip:[email protected]
Dialogic
77