Before you configure the Line URI parameter on Microsoft Active Directory, note the following:
For the Line URI, we recommend that you use the format: tel:xxxx;phone-context=dialstring where:
xxxx specifies the directory number that the CTI Manager reports to IM and Presence as the calling or called number when a call is placed.
phone-context=dialstring enables the Microsoft Lync client to control one of the devices that are associated with the directory number.
Note
If you are using E.164 numbers, do not include phone-context=dialstring because it will result in an error at the Microsoft Lync client. See Lync Error when using E.164 numbers.
If you configure the device ID, the Microsoft Lync client controls that particular device on initial sign in; for example: tel:xxxx;phone-context=dialstring;device=SEP0002FD3BB5C5
If you configure the partition, the Microsoft Lync client specifies the partition for the directory number; for example: tel:xxxx;phone-context=dialstring;device=SEP0002FD3BB5C5;partition=myPartition
The Line URI only takes effect when the Microsoft Lync user signs in.
After initial sign in, the Microsoft Lync user can change the line appearance that they wish to control using the Cisco Unified CM IM and Presence Lync Remote Call Control Plugin.
If you do not configure the device ID in the Line URI, the CTI Gateway determines the devices that are associated with the line Directory Number (DN). If only one device is associated with the line DN, the CTI Gateway uses that device.
Note
You can also use the E.164 format for the Line URI. However, you must ensure that the DNs are also configured with E.164 on Cisco Unified Communications Manager.
When configuring the SIP URI on Microsoft Active Directory, consider how IM and Presence performs the user authentication checks. The user authentication logic is as follows:
IM and Presence checks if the Microsoft Lync (sign in) user ID matches the Cisco Unified Communications Manager user ID. If IM and Presence cannot find a match:
IM and Presence checks if the Microsoft Lync user email (the From header) matches the Cisco Unified Communications Manager user email. If IM and Presence cannot find a match:
IM and Presence checks if the Microsoft Lync user email matches the ocsPrimaryAddress value of a Cisco Unified Communications Manager user.
For example, a user Joe has the Microsoft Lync user ID joe@someCompany.com. The From header in the SIP INVITE is sip:joe@someCompany.com.
In this case, IM and Presence checks the following:
If there is a user in the Cisco Unified Communications Manager database whose user ID is 'joe'. If this user ID does not exist:
If there is a user in the Cisco Unified Communications Manager database whose mail is 'joe@someCompany.com'. If this mail does not exist:
If there is a user in the Cisco Unified Communications Manager database whose ocsPrimaryAddress is 'sip:joe@someCompany.com'.
Set up Microsoft Active Directory
Before You Begin
Read the topic describing Line URI configuration on Microsoft Active Directory.
Read the topic describing the user authentication checks on IM and Presence.
Procedure
Step 1
From the Microsoft Active Directory application window, add a user name and the telephone number that are associated with each particular user.
Step 2
For each of the users that you added, open the Properties window on Microsoft Active Directory and configure the following parameters:
Enable the user for the Microsoft Lync Server.
Enter the SIP URI.
Enter the Microsoft Lync server name or pool.
Caution
Ensure the Microsoft Lync server name or pool name does not contain the underscore character.
Under Telephony Settings, select Configure.
Check Enable Remote call control.
Enter the Remote Call Control SIP URI; for example, sip:8000@my-cups.my-domain.com, where my-cups.my-domain.com specifies the FQDN of the IM and Presence server that you configured for this integration.
Enter the Line URI value.
Important:
The SIP URI that you enter on Microsoft Active Directory must match the static route URI that you define when you are configuring static routes on Microsoft Lync.
The following procedure describes how to enable new users in the Lync Server Control Panel.
Procedure
Step 1
Go to the Windows server that has Microsoft Lync Server 2010 installed.
Step 2
Select StartAll Programs > Microsoft Lync Server 2010 > Lync Server Control Panel.
Step 3
Choose Enable users for Lync Server from the Top Actions menu.
Step 4
Select Add.
Step 5
Select the LDAP search option and select Find.
Step 6
Click on the user to enable and select OK.
Step 7
Choose the application pool from the Assign users to a pool drop-down list.
Step 8
Select the Specify a SIP URI option and enter the SIP URI, for example, sip:UserA@lyncdomain.com, where UserA is the user you added and lyncdomain.com specifies the domain name of the Lync server.
Step 9
Choose Remote call control from the Telephony drop-down list.
Step 10
Enter the Line URI in the format tel:<telephone_number>, where <telephone_number> is the telephone number you entered when adding the user.
Step 11
Enter the Line Server URI, for example, sip:UserA@my-cups.my-domain.com, where UserA is the user you added and my-cups.my-domain.com specifies the domain name of the IM and Presence server.
The Line Server URI domain and the value in the MatchUri parameter must match to enable the Lync server to correctly route SIP messages to the IM and Presence server.
The IM and Presence server must also have this domain set as its proxy domain.
Step 12
Select Enable at the top of the window to enable the new user. The user should have a check mark in the Enabled column.
This topic provides a brief description of the configuration required on Microsoft Lync Server 2010 for this integration. A comprehensive description of Microsoft Lync configuration is out of the scope of this document. For more information, see the Microsoft Lync documentation at the following URL: http://technet.microsoft.com/en-us/library/gg558664.aspx.
Make sure that the Microsoft Lync server is properly installed and activated. Make sure that the following items are configured on Microsoft Lync:
You configure the Microsoft Lync Server 2010 using the Lync Server Management Shell utility. The Management Shell utility is installed by default with the Lync server installation. Set up the following items during Microsoft Lync server 2010 configuration:
static routes
application pools
RCC application
Lync server SIP listen port
After you set up the Microsoft Lync Server 2010, commit the topology and restart the front-end service.
Set up static route for Microsoft Lync Server 2010
The Lync server uses the static route to match the URI of the incoming client's SIP message INVITE. The Lync server references the URI value as the Line Server URI.
Procedure
Step 1
Select Start > All Programs > Microsoft Lync Server 2010 > Lync Server Management Shell.
Step 2
Enter the following command to verify the current system configuration:Get-CsStaticRoutingConfiguration
Step 3
Enter the following command to create a static route:$tcpRoute = New-CsStaticRoute -TCPRoute -Destination <IP_address_CUPserver> -Port 5060 -MatchUri "<Line_Server_URI_domain>" -ReplaceHostInRequestUri $true
Step 4
At the prompt, enter the following command to load the static route into the Lync server. Set-CsStaticRoutingConfiguration -Route @{Add=$tcpRoute}
Step 5
Verify the new system configuration by entering the Get command from Step 2 again.
Note
If you need to modify or delete a static route, enter the following command:
Remove-CsStaticRoutingConfiguration –Identity Global
The following table describes the parameters that you use to insert a new static route for Lync server.
Table 1 Static route parameters
Parameter
Description
$tcpRoute
The name of the variable. It can be named anything but it must begin with a $ and mach the reference in the Set command.
New-CsStaticRoute
The internal command that populates the static route to a variable.
-TCPRoute
This parameter configures the route as TCP.
-Destination
The IP address of the IM and Presence server.
-Port
The port to which the IM and Presence server listens. For TCP, the port is 5060.
Set up application pool for Microsoft Lync Server 2010
The following procedure sets up an application pool that is referenced by the Lync server (registrar). It also links the site information to this pool.
Procedure
Step 1
In the Lync Server Management Shell enter the following command to verify the current system configuration:Get-CSTrustedApplicationPool
Step 2
Enter the following command to create the application pool:CsTrustedApplicationpool -Identity "<IP_address_CUPserver>" -Registrar <Lync_server_FQDN> –Site 1 –TreatAsAuthenticated $True –ThrottleAsServer $True –RequiresReplication $False
Step 3
Select Y at the prompt.
Step 4
Verify the new system configuration by entering the Get command from Step 1 again.
Tip
If you need to modify or delete the application pool, enter the following command:
Set up RCC application for Microsoft Lync server 2010
The following procedure adds the RCC application to the pool.
Procedure
Step 1
In the Lync Server Management Shell enter the following command to verify the current system configuration:Get-CSTrustedApplication
Step 2
Enter the following command to add the RCC application to the pool:New-CsTrustedApplication -ApplicationID RCC -TrustedApplicationPoolFqdn "<IP_address_CUPserver>" -Port 5060 -EnableTcp
Step 3
Select Y at the prompt.
Step 4
Verify the new system configuration by entering the Get command from Step 1 again.
Tip
If you need to modify or delete the application pool, enter the following command:
This procedure describes how to commit the topology and restart the front-end service.
Procedure
Step 1
In the Lync Server Management Shell enter the following command to enable the topology:Enable-CsTopology
Step 2
Enter the following command to output the topology to an XML file called rcc.xml and save it to the C drive:Get-CsTopology -AsXml | Out-File C:\rcc.xml
Note
You can select any name and location to output the topology information.
Step 3
Open the rcc.xml file.
Step 4
In the Cluster Fqdn section, change the IPAddress parameter from "<0.0.0.0>" to the IP Address of the IM and Presence server.
Step 5
Save the rcc.xml file.
Step 6
Enter the following command in the Lync Server Management Shell: Publish-CsTopology -FileName C:\rcc.xml
Step 7
Enter the following command to restart the front-end service:Restart-Service RtcSrv