Set up UCMA for Skype presence, federation, & busy-on-busy
Kun slutbruger-hjælpen er for tiden oversat til dansk. Hjælp til installation og administration af Zylinc-løsninger er for tiden på engelsk.
Dette emne er fortrinsvis for administratorer og/eller folk som bestyrer en Zylinc-løsning
This topic explains how you:
- Set up UCMA to get Skype for Business (SfB) presence, and test that SfB presence is visible in ZyDesk
- Set up two-way federation between ZyDesk and Skype for Business, and test that two-way federation works between ZyDesk agent and Skype
- Set up Busy-on-Busy so that incoming Skype for Business calls will not reach busy users, and test Busy-on-Busy feature
- Set up a chat queue that you can call from a Skype for Business client to test that two-way chat works between ZyDesk and Skype

The integration between Skype and Zylinc works with both UCWA and UCMA. Some integrations furthermore require MSPL script. MSPL is short for Microsoft SIP Processing Language, a scripting language that you can use to customize how Skype routes SIP messages.
UCWA works with both Office 365 and on-premise installations. If your Skype environment is on-premise, and you set up UCMA, you'll get additional features:
UCWA | UCMA | MSPL script | |
---|---|---|---|
Office 365 | X | ||
On-premise installation | X | X | X |
IM presence | X | X | |
Federated busy | X | ||
Skype-based chat queues and web chat | X | ||
Busy-on-Busy call interception | X | X |


This guide assumes that you've carried out the steps described in Set up Skype for Business telephony. Follow that guide before you continue.

On the Zylinc Windows Application Server:
-
Download Unified Communications Managed API 4.0 Runtime: https://www.microsoft.com/en-us/download/details.aspx?id=34992
-
Run UcmaRuntimeSetup.exe and install UCMA 4.0
Only UCMA version 4.0 is supported. If you have other UCMA versions installed on the Zylinc Windows Application Server, you must remove those versions.

On the Zylinc Windows Application Server, run C:\ProgramData\Microsoft\Lync Server\Deployment\cache\5.0.8308.0\Setup\OCSCore.msi, and install Microsoft Lync Server 2013, Core Components.

In order to create the trusted application in the correct Lync Server 2013 context, use the GUI in Skype for Business Server Topology Builder to create the pool.
On the mediation server:
- Log in to Skype for Business Server Topology Builder as a domain administrator
- In Lync Server 2013, right-click Trusted application servers and select New Trusted Application Pool...
- Select This pool has one server
- In FQDN, enter the hostname or IP address of Zylinc Windows Application Server
- In Select the next hop server, select Associate next hop pool
- In Next hop pool, select the required front end server
- Finish
- In the menu, select Action > Topology > Publish... and publish the topology

On the mediation server, in Skype for Business Management Shell, type the following two commands. Replace <ZylincAppSrv_FQDN> with the fully qualified DNS name of Zylinc Windows Application Server.
New-CsTrustedApplication -ApplicationId ZylincTA -TrustedApplicationPoolFqdn <ZylincAppSrv_FQDN> -Port 35042
Enable-CsTopology

On the mediation server, in Skype for Business Management Shell, type the following two commands. Replace <ZylincAppSrv_FQDN> with the fully qualified DNS name of Zylinc Windows Application Server, and replace <domain.com> with your domain
New-CsTrustedApplicationEndpoint -ApplicationId urn:application:ZylincTA -TrustedApplicationPoolFqdn <ZylincAppSrv_FQDN> -SipAddress sip:zylinctae@<domain.com>
Enable-CsTopology

-
Log in to the Zylinc Windows Application Server as a domain administrator
-
Start Command Prompt (Admin)
-
Type the command CertUtil
-
Make a copy of the value of the line that starts with Config
Example: host.domain.com\domain-MTP-AD-CA
-
On the Zylinc Windows Application Server, start Lync Server Management Shell as an administrator
-
Run the following command. Replace <ZylincAppSrv_FQDN> with the fully qualified DNS name of Zylinc Windows Application Server
Request-CsCertificate -New -Type default -FriendlyName "ZylincTA" -CA <insert the value that you copied> -ComputerFQDN <ZylincAppSrv_FQDN>

Make a copy of ServiceGruu:
-
On the Zylinc Windows Application Server, log in to Lync Server Management Shell as a domain administrator
-
Type the command
get-cstrustedapplication
-
Make a copy of the contents of ServiceGruu that relates to ZylincTA
The value may be broken into more than one line. Use Notepad to make sure that the value is on a single line, and that there are no unnecessary spaces.
Set up UCMA in Administration Portal:
- In the Administration Portal menu, select INSTALL > Portal Configuration
- Select Lync/SfB
- Select Client, Mobile & Web
- Click Save
- In the Administration Portal menu, select NETWORK > SfB Configuration
- Click SETUP in the top right corner
- In the Skype for Business User Proxy -
Generel section:
- In Connection Type, select UCMA
- In the Skype for Business User Proxy -
UCMA section:
- In Endpoint Type, select UCMA - Application End-point
- In Service Address/ FQDN, enter the address of the Zylinc Windows Application Server
- In GRUU, paste the ServiceGruu that you previously copied
- In Certificate Friendly Name, enter ZylincTA
- In SIP-uri, enter sip:zylinctae@<domain.com>, replace <domain.com> with your domain
- Click Save

Restart the following to make sure that old UCWA presence information is deleted:
- Restart ZyGo
- Restart Skype for Business User Proxy
- Restart ZyDesk
In the Time overview of ZyDesk, inspect the SfB column for Skype users
- Log in to ZyDesk as an agent with Skype softphone device and operator device
- For Skype users, SfB presence should be visible as a red/yellow/green square icon in the SfB column. When you place your mouse pointer over the icon, you should see the SfB presence, for example away, busy, idle, or be right back.


- In the Administration Portal menu, select Network > SfB Configuration
- In the Skype for Business Federation -
Feature Settings section, do the following:
- Select Activate
- In Domain Whitelist, enter the name of your domain
- In Federate from, select Agent
- In Client Languages (extra), select all languages
- In Busy Text - Agent, enter ZyDesk agent busy

- In the Administration Portal menu, select SYSTEM > Client, Mobile & Web
- In the Agent federation section Federate from, select Skype for Business
- In SfB Whitelist, select All
- Save

You're going to need a number to call that automatically answers calls and just plays music-on-hold, so that users become busy when they call that number, and the federation feature can be tested.
Set up a special test queue, with number 1001, that just plays music:
- In the Administration Portal menu, select QUEUES > Voice Queues
- Click Add Voice Queue
- In Name, enter QueueThatJustPlaysMusic
- In Number, enter 1001
- In Unmonitored Queue, select Queue Calls
- Don't add any users to the queue. It's supposed to be unmonitored at all times.
Change a Skype agent's agent device and operator device to internal softphone:
- In the Administration Portal menu, select USERS > Agents
- Click the name of an Agent
- Set User (Operator) Device to internal
- Set Agent - Incoming Calls Device to internal
- Save
- Check that no errors are displayed in the top of the Administration Portal page
Restart the following, to make sure that old UCWA presence information is deleted:
- Restart ZyGo
- Restart Skype for Business User Proxy
- Restart ZyDesk
Test that agent state is federated into skype:
- Log in to ZyDesk with the agent whose operator device and agent device you previously changed to internal softphone
- Open the Skype client window next to ZyDesk.
- Call 1001 from ZyDesk. In Skype, the presence should immediately change to ZyDesk agent busy. When you hang up the call, Skype presence should remain ZyDesk agent busy for a few seconds, as long as ZyDesk is in the wrap-up state. This step validates federation in one direction.
- Call 1001 from Skype. Search in ZyDesk so that the agent becomes visible in the Time overview. Place your mouse pointer over the red icon in the Unified Presence column (usually the second column from left). The unified presence text should show - CC Busy and - SfB on-the-phone


MSPL Manager is a service installed on Skype for Business frontend servers. It monitors SIP signaling and, if Busy-on-Busy is enabled, it can intercept calls, before they're routed to Skype users.
If you don't use Busy-on-Busy, you can omit the installation of MSPL Manager.
When MSPL Manager starts, it connects to ZyDB to get the address and port number for SfB User Proxy, along with the rest of its configuration. MSPL Manager then connects to SfB User Proxy.
SfB User Proxy and SfB MSPL Manager work together to provide Busy-on-Busy functionality. User Proxy initiates a connection to the port that MSPL Manager listens on, and the two services are now connected and ready to work together to provide the functionality.

To install MSPL Manager on Skype for Business frontend server:
- Install LyncMsplManagerSetup-<version>.msi. You find it in the 3_Application_Server\12_Lync folder in the unzipped Zylinc release.
- Enter ZyDB connection information (the SQL host, port, database, user, and password)

- Download this file: ZylincHandler.zip
- Extract ZylincHandler.am from the zip file, and overwrite the existing file: C:\Program Files\Zylinc\LyncMsplManager\<version>\ZylincHandler.am with the one from the zip file.

Log in as an administrator on the frontend server:
-
Start Skype for Business Server Management Shell.
-
Run the following command. Replace <FrontEndServerName.DOMAIN> with the hostname of your SfB frontend server:
New-CsServerApplication -Identity Registrar:<FrontEndServerName.DOMAIN>/ZylincHandler -Uri http://mspl.zylinc.com/ZylincHandler -Enabled $True -Critical $False -Priority 4

The following steps describe how to create a local service user for MSPL Manager service, that is a member of two local groups: RTC Server Applications and Administrators:
- Right-click the Windows button and select Computer Management
- Right-click Computer Management > System Tools > Local Users and Groups > Users and select New User...
- In User name, type ZylincMSPLSVC
- Create a new password for the user.
- Clear User must change password at next logon
- Select User cannot change password
- Select Password never expires
- Click Create
- Click Close
- Double-click ZylincMSPLSVC
- Select the Member of tab
- Click Add...
- In Enter the object names to select, type RTC Server Applications; Administrators
- Click OK

- Right-click the Windows button and select Computer Management
- In Services and Applications > Services, double-click Zylinc Lync MSPL Manager <version>
- Select the General tab, Startup type, select Automatic (delayed start)
- Select the Log On tab, select This account.
- Click Browse...
- In Enter the object name to select, enter ZylincMSPLSVC
- OK
- Enter the password for the SVC user that you previously created.
- OK
- Make sure that Zylinc Lync MSPL Manager <version> is started.

Busy-on-Busy lets you apply rules to incoming calls, depending on the user's current presence, agent state.
Actions that a rule can do to an incoming call:
- Decline call
- Follow SfB Client No Answer rule
- Forward to SfB Voicemail
- Forward to a phone number
Busy rules can be applied if:
- The user is in an active call in Skype for Business
- The user has manually selected the state busy in Skype for Business
- The user is in an active call on another phone type with federated status, for example on the company mobile phone.
- The user's Zylinc agent state is busy. For example, the user is in an active call from a voice queue on the ZyDesk softphone, or in wrapup state because such a call just ended.
Skype for Business activity rules can be applied based on the user's presence text, for example: away, be right back, busy, and do not disturb
Rule priority
To help you define when a rule becomes active, you can assign priorities to the rules. If criteria for more than one rule are met, the system applies the rule with highest priority.
Priority for activity rules vs. busy rules
Activity rules always takes priority over busy rules
Groups
Groups are useful to define the scope of users for a rule.
- In the Administration Portal menu, select NETWORK > SfB Configuration
- In the Skype for Business Busy-On-Busy - Feature Settings section, select Activate
- In Apply rules when, select User Busy and Agent Busy
- In Busy Rules, select GroupZyDeskUsers
- Save
- Restart SfB User Proxy
- Restart MSPL Manager

- Log in to Skype on computer 1 with Skype user with phone number 2000
- Log in to Skype on computer 2 with Skype user with phone number 2001
- From computer 2, call number 2000. The call should pass through.
- From computer 1, call number 1001. User presence changes to busy. Music-on-hold is played from queue 1001.
- From computer 2, call number 2000. The call should be rejected with message 2000 is in another call
- Go back to computer 1 and hang up the call to 1001.
- From computer 2, call number 2000. The call should pass through.
Optionally, you can search in the MSPL Manager log file for the text phrase phone was declined with busy. If a line that contains that text exists at the relevant date/time, this confirms that Busy-on-Busy works correctly and actually declined a call.
Only the MSPL Manager log file will contain information about each declined call. SfB User Proxy log file will not log each declined call.


On the mediation server, in Skype for Business Management Shell, type the following commands. Replace <ZylincAppSrv_FQDN> with the fully qualified DNS name of Zylinc Windows Application Server
New-CsTrustedApplication -ApplicationId ZylincChatTA -TrustedApplicationPoolFqdn <ZylincAppSrv_FQDN> -Port 35045
Enable-CsTopology

On the mediation server, in Skype for Business Management Shell, type the following commands.
Replace <ZylincAppSrv_FQDN> with the fully qualified DNS name of Zylinc Windows Application Server, and replace <domain.com> with your domain
New-CsTrustedApplicationEndpoint -ApplicationId urn:application:ZylincChatTA -TrustedApplicationPoolFqdn <ZylincAppSrv_FQDN> -SipAddress sip:zylincchattae@<domain.com>
Enable-CsTopology

You can reuse the certificate ZylincTA that you previously created.


On the Zylinc Windows Windows Application Server
- Log in to Lync Server Management Shell as a domain administrator
- Type the command get-cstrustedapplication
- Make a copy of the contents of ServiceGruu that relates to ZylincChatTA. The value may be broken into more than one line. Use Notepad to make sure that the value is on a single line, and that there are no unnecessary spaces.

- In the Administration Portal menu, select Network > SfB Configuration
- Click SETUP in the top right corner
- Do the following in the section Skype
for Business Chat Queue Handler - UCMA Settings
- In Service Address/ FQDN, enter the address of the Zylinc Windows Application
- In GRUU paste the ZylincChatTA gruu that you previously copied
- In Certificate Friendly Name, enter ZylincTA
- If you use Chrome, it automatically fills out the following
fields with wrong information. In that case:
- Delete the contents of Relay endpoint URI
- Delete the contents of Relay Password

- In the Administration Portal menu, select INSTALL > Portal Configuration
- Select Chat Queues
- In Chat Queue Handlers, select Skype for Business Chat
- Save
- In the Administration Portal menu, select QUEUES > Chat Queues
- In Name, enter ChatQueueZylincChatTAE
- In User, enter sip:zylincchattae@<domain.com>
- In Welcome Text, enter Welcome to customer service
- In Connected Text, enter You are now connected
- In Disconnected Text, enter You are now disconnected
- In Queue Full Text, enter We are busy right now, please try again later
- In Unmonitored Text, enter We are temporarily unavailable, please try again later
- In Closed Text, enter .We are closed. You can view our opening hours on our website.
- Save
- Click ChatQueueZylincChatTAE
- Click USERS in the top right corner
- Add a Skype-enabled user to Primary
- Save

On the Zylinc Windows Application Server:
- In the Deployment Manager menu, select Deployment > Installation
- In Installers, select Lync Chat Queue Handler
- Click Install Applications
- In the Deployment Manager menu, select Deployment > Services
- Start Chat Queue Handler

- Make the chat queue unmonitored. Close all running instances of ZyDesk.
- Log in to Skype and inspect the status of the user zylincchattae@<domain.com>. Test that status of the queue is be-right-back
- Log in to ZyDesk as the agent who you previously added as Primary chat queue agent.
- From Skype, inspect the status of the user zylincchattae@<domain.com>. Test that status of the queue has changed from be-right-back to idle.

- Log in to client computer 1 as a Skype user who's not an agent on any queue.
- Log in to client computer 2 as the Skype user who you previously added as Primary chat queue agent.
- On computer 1: call the chat queue, zylincchattae@<domain.com>
- On computer 2: the call should be visible as an incoming call in ZyDesk. Answer the call.
- On computer 2: send the chat text Hello, how can I help you?
- On computer 1: send the chat text I'm testing your chat queue ...
- Go back to computer 2 to verify that chat works in both directions.
Dette er hjælp til Zylinc version 6.5. Du kan vælge hjælp til andre versioner her.
© 2021 Zylinc A/S • Ansvarsfraskrivelse
Zylinc unified help har vundet UK Technical Communication Awards
Hjælpeversion: 24 februar 2021 15:41:38
Del denne side med andre: