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.

Follow these steps to create a transfer profile and route calls using this profile:

Step Action

1

Access the Vision Console, as described in Accessing the Vision Console.

2

Click Gateway profiles in the Provisioning menu. The Routing profiles configuration page with the default profile is displayed.

3

Create a new profile. Click Clone to make a copy of the default profile and modify it.

Edit the profile name (for example, call it sip-transfer) and profile description in the General section of the profile page.

For information, see General routing profile parameters.

4

Set Mode to Transfer in the General section. Click Submit.

5

Click Gateway routes in the Provisioning menu and update the profile association for this route.

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

Profile

Incoming Called party

Incoming Calling party

Outgoing Called party

Outgoing Calling party

1

sip-transfer

sip:(\d+)@10.3.6.1

sip:(\d+)@.*

tel:$1

tel:$1

2

sip-transfer

sip:(.*)

sip:(.*)

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