Gateway routing table examples
Dialogic® Vision™ CX Video Gateway Administration Manual
PSTN to SIP pass-through to a single SIP destination
This example shows a straight pass-through between PSTN calling/called numbers
and SIP To/From headers to a single SIP destination.
ID
To incoming
From incoming
Mode
To outgoing
From outgoing
1
tel:(\d+)
tel:(\d+)
Route
sip:$1@gateway
2
sip:(\d+)@.*
sip:(\d+)@.*
Route
tel:$1
tel:$1
The following rules are used in this example:
Rule
Description
1
Matches and captures all digits (at least 1) from PSTN calling/called numbers, inserts the digits
into SIP From/To headers.
2
Matches a sip: URI in From/To headers, captures all digits before @ and inserts the digits into
PSTN calling/called numbers.
Sample Input/Output: Incoming PSTN call (rule 1 match)
Calling: tel:8479258900 => sip:8479258900@gateway
Called: tel:5082711000 => sip:[email protected]
Sample Input/Output: Incoming SIP call (rule 2 match)
From: sip:[email protected] => tel:8479258900
To: sip:[email protected] => tel:5082711000
Sample Input: No match
From: sip:[email protected] => tel:8479258900
To: sip:[email protected] => No match, because the SIP matching pattern requires at
least one digit.
74
Dialogic