Dialogic® Vision™ CX Video Gateway Administration Manual
Gateway routing table examples
Transferring to PSTN and SIP destinations
When a single gateway supports transfers to both PSTN and SIP destinations, the
Refer-to destination pattern must be able to distinguish between the destinations.
There are several ways to do this, depending on the application. For example, the
Refer-to destination for PSTN calls could contain a prefix digit that is stripped out
before sending it to the PSTN that identifies it as a PSTN destination.
In this example, the Refer-to IP address of the gateway (10.3.6.1) identifies PSTN
destinations. Any other IP addresses are considered SIP destinations. The transfer-
to-pstn rule must appear first in the table because the transfer-to-sip rule would
otherwise match PSTN destinations as well.
ID
To incoming
From incoming
Mode
To outgoing
From outgoing
1
sip:(\d+)@10.3.6.1
sip:(\d+)@.*
Transfer
tel:$1
tel:$1
2
sip:(.*)
sip:(.*)
Transfer
sip:$1
sip:$1
The following rules are used in this example:
Rule
Description
1
Matches any sip: URI with one or more digits and a destination IP address of the gateway in
the Refer-to header, captures all digits before @, and inserts the digits into the PSTN called
number.
2
Matches any other sip: URI in Refer-to header, captures the entire URI, and inserts the URI into
the SIP To header.
Sample Input/Output: SIP transfer request
From: sip:9258900@10.3.6.9 => tel:9258900 (rule 1 match)
Refer-to: sip:2711000@10.3.6.1 => tel:2711000
From: sip:9258900@10.3.6.9 => sip:9258900@10.3.6.9 (rule 2 match)
Refer-to: sip:service2@Server2.com => sip:service2@Server2.com
Dialogic
79