The instructions in this Best Practice assume the Sonus SBC 1000/2000 node is running and connected to the WebUI.
Overview - Skype/Lync Presence
This best practice document defines the suggested configuration for both the SBC and Skype/Lync Server in order for Third Party Presence to be published.
The example configuration items are used to configure the Sonus SBC 1000/2000 for Skype for Business (in order for Third Party Presence to be published):
- Skype/Lync Presence server has the FQDN of lyncpool.example.com.
- An analog phone connected to FXS port (phone number 2222) needs presence published when a call is connected/disconnected.
- CAS SG (Phones) defines an Action Set with Transformation Tables to alert the system that presence needs to be published.
- Phone number 2222 is defined in AD as attribute homePhone for a Lync user (msRTCSIP-PrimaryUserAddress = firstname.lastname@example.org). It is this relationship that allows the FXS phone at 2222 to publish presence for the Lync user.
Step 1. Configure the Skype/Lync Presence Server
A SIP Server must be configured to point to a Presence Server. A Presence Server runs on a Skype/Lync front-end pool. MTLS is required for communication between the SBC and the Presence Server. Therefore, the transport protocol of the SIP server must be TLS.
Configure Skype/Lync Presence Server as follows:
- In the WebUI, access SIP > SIP Server Tables.
- Create a Lync Presence Server. Use the example below as a guideline for configuration.
- From the TLS Profile drop down list, select Default TLS Profile (ensure the Default TLS profile has the Mutual Authentication parameter set to Enabled; see Creating and Modifying TLS Profiles).
- In the Port field, enter 5061.
Step 2. Enable Skype/Lync Presence
The SIP Server you select for the Presence Destination can be None or a SIP Server that has been defined with a transport protocol of TLS.
Enable Skype/Lync Presence as follows:
- In the WebUI, access SIP >Node-Level SIP Settings.
- From the Presence Destination drop-down menu, select a Presence Server (i.e., Lync Presence Server). This is the server configured in the previous section.
Step 3. Define AD Configuration/Domain Controller for AD Cache Look Up
Configure Active Directory (AD)
Normalize Cache parameter must be set to False for the Presence feature to work.
- In the WebUI, access Auth and Directory Services >Configuration.
Configure Domain Controller (DC)
- In the WebUI, access Auth and Directory Services >Domain Controllers.
- Add a Domain Controller.
- Configure as shown in the example below. For detailed information about Domain Controllers, see Adding and Modifying Domain Controllers.
Step 4. Configure Transformation Entries for Presence
Typically, a non-Lync endpoint desiring its presence to be published, will want the connection of both incoming and outgoing calls to trigger presence. This can be accomplished by defining one Transformation Table with two entries This transformation table will be used by an Action Set (defined in subsequent) Steps.
It is mandatory to have an entry in the Active Directory (AD) that is associated with the non-Lync endpoint; this AD attribute can be any field (ipPhone, homePhone, etc...). Options have been added to the transformation WebUI to make configuring Presence as straightforward as possible. When Presence - Called Address/Number is selected for Input Field Type (or Presence - Calling Address/Number), all of the remaining fields will be filled in with the most typical selections. See the figure below for an example. Note that the Input Field Value and Output Field Value are editable drop down boxes; they present the most likely selections, but also allow the user to overwrite with any value desired.
The example below will do an AD cache look-up for homePhone and match against the Called Address/Number. If there is a match, the msRTCSIP-PrimaryUserAddress of that AD entry will be copied into the Presence - Called Address/Number Output Field. It is this called presence value that will be used in the Request URI, To and From headers of the Publish message that announces the presence status. Similar configuration should be defined for the Presence - Calling Address/Number. The default value for the Input Field Value when the Input Field Type is Presence - Called(ing) Address/Number will be AD:ipPhone
Input Field Value and Output Field Value are editable list boxes. They present the most likely selections, but also allow you to overwrite the predefined values.
Create a Transformation entry as follows:
- In the WebUI, access Tranformation.
- Create an entry for Called/Address Number as shown in the example below. For detailed information about the Transformation table, see Creating and Modifying Entries to Transformation Tables.
- Create another configuration for Calling Address/Number (Presence).
In the example below, the default value for Input Field's Value field is "==homePhone==" when the Type field is "Presence Calling Address/Number.
Step 5. Define An Action Configuration
A Route Call Action configuration should be defined. This allows routing to take place at the end of the Action set used for Presence.
- In the WebUI, access Call Actions > Action Configuration.
Step 6. Define An Action Set for Presence
- In the WebUI, access Call Actions > Actions Sets.
Step 7. Attach An Action Set To The Desired Signaling Group(s)
In order for the Action Set to be applied, it must be attached to a Signaling Group.
Attach as follows:
- In the WebUI, access Signaling Groups.
- Select the Signaling Group in which the Actions Set will be attached.
Configure Lync Server
This topology change requires Lync 2013 Server to be updated to at least version 5.0.8308.866 released on 12/31/2014 as Cumulative Update CU5 HF7.1.
Lync 2013 Server versions earlier than 5.0.8308.866 will not allow the SBC to be configured as Trusted Application Server.
Before executing the steps below make sure that SBC is defined in the PSTN gateway section of the Lync topology.
Obtain The Site ID
Execute Get-CsSite cmdlet to find out the Site Id number
Create A Trusted Application Pool
Execute New-CsTrustedApplicationPool cmdlet to create new pool that will host presence application
–Identity – FQDN of the SBC providing presence updates to Lync Server
–Registrar – FQDN of the Registrar service for the pool
–Site – Site Id obtained in Obtain the site ID.
Use any Front End or SBA for the Registrar, ideally choosing the most reliable connection to the SBC.
Create A Trusted Application
Execute New-CsTrustedApplication cmdlet to add a presence application to trusted application pool.
–ApplicationId – The name of the application
–TrustedApplicationPoolFqdn – The FQDN of the trusted application pool created in Create a Trusted Application Pool.
–Port – The port number on which the application will run (5061)
Enable The Lync Server Topology
Execute Enable-CsTopology cmdlet for topology changes to take effect