Configuring Lync 2010 to Route to a SIP/CSTA Gateway
A SIP/CSTA gateway is a gateway between SIP and a computer-supported telecommunications application (CSTA). A SIP/CSTA gateway provides the interface between an existing PBX and Lync for routing remote call control requests to the PBX.
Configure a Static Route for Remote Call Control
Remote call control requires that every Lync pool is configured with a path from that pool to the SIP/CSTA gateway that connects to the private branch exchange (PBX). This path requires that each pool has one static route for each gateway to which the pool will proxy SIP call control messages associated with calls to the PBX. If you configure a global static route for remote call control, each pool that is not configured with a static route at the pool level will use the global static route.
How to configure a static route for remote call control:
- Log on to a computer where LyncPowerShellis installed as a member of the RTCUniversalServerAdmins group or a role-based access control (RBAC) role to which you have assigned the New-CsStaticRoutecmdlet.
- Start the Lync Management Shell: Click Start, click All Programs, click MS Lync 2010, and then click Lync Management Shell.
- To create a static route and put it in the variable $TLSRoute or $TCPRoute, do one of the following:
- For a Transport Layer Security (TLS) connection, type the following at the command prompt:
$TLSRoute = New-CsStaticRoute –TLSRoute –Destination <gateway FQDN> -Port <gateway SIP listening port> -UseDefaultCertificate $true –MatchUri <destination domain>
For example:
$TLSRoute = New-CsStaticRoute –TLSRoute –Destination rccgateway.contoso.net -Port 5065 -UseDefaultCertificate $true –MatchUri *.contoso.net
If UseDefaultCertificate is set to False, you must specify TLSCertIssuer and TLSCertSerialNumber parameters. These parameters indicate the name of the certification authority (CA) that issued the certificate used in the static route, and the serial number of that TLS certificate, respectively. For details about these parameters, see LyncPowerShellHelp by typing the following at the command prompt:
- For a(TCP) connection, run below command:
Get-Help New-CsStaticRoute –Full
$TCPRoute = New-CsStaticRoute –TCPRoute –Destination <gateway IP address or FQDN> -Port <gateway SIP listening port> –MatchUri <destination domain>
For example:
$TCPRoute = New-CsStaticRoute –TCPRoute –Destination 192.168.0.240 -Port 5065 –MatchUri *.contoso.net
The following are default values for optional parameters for static routes:
- Enabled = True
- MatchOnlyPhoneUri = False
- ReplaceHostInRequestUri = False
We strongly recommend that you do not change these default values. However, if you must change any of these parameters, see LyncPowerShellHelp by typing the following at the command prompt:
- For a Transport Layer Security (TLS) connection, type the following at the command prompt:
- To persist a newly created static route in the CMS, run one of the following, as appropriate:
Get-Help New-CsStaticRoute –Full
Set-CsStaticRoutingConfiguration –Route @{Add=$TLSRoute}
Set-CsStaticRoutingConfiguration –Route @{Add=$TCPRoute}
Define a SIP/CSTA Gateway IP Address
If Lync will connect to the SIP/CSTA gateway that you deployed for remote call control using a Transmission Control Protocol (TCP) connection, then you must define the IP address of the gateway in Topology Builder. This step is not necessary for gateways that support Transport Layer Security (TLS) connections.
How to define the SIP/CSTA gateway IP address by using Topology Builder:
- Log on to the computer where Topology Builder is installed as a member of the Domain Admins group and the RTCUniversalServerAdmins group.
- Start Topology Builder: Click Start, click All Programs, click MS Lync 2010, and then click Lync Topology Builder.
- Choose the option to download an existing topology.
- Expand the Trusted application servers node.
- Right-click the trusted application pool that you created as described in and then click Edit Properties.
- Clear the Enable replication of configuration data to this pool check box.
- Click Limit service usage to selected IP addresses. The default setting is Use all configured IP addresses.
- In the Primary IP address text box, enter the IP address of the SIP/CSTA gateway.
- To update the topology in the CMS, in the console tree, click Lync 2010 and, from the Actions pane, click Publish.
