ocs mobilestatus installation and configuration guidetelenor.blueposition.com/files/ocs...

42
OCS MobileStatus Installation and Configuration Guide, 2.6 2015-06-15 Page 1 of 42 BluePosition A/S - Diplomvej 376 - 2800 Lyngby - Tlf.: +45 70 20 65 25 - www.blueposition.com OCS MobileStatus Installation and Configuration Guide Release 2.6

Upload: lamthuy

Post on 27-Aug-2018

282 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide, 2.6 2015-06-15 Page 1 of 42

BluePosition A/S - Diplomvej 376 - 2800 Lyngby - Tlf.: +45 70 20 65 25 - www.blueposition.com

OCS MobileStatus Installation

and Configuration Guide

Release 2.6

Page 2: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 2 of 42

Contents

Release Notes .................................................................................................................................................... 4

Introduction ....................................................................................................................................................... 5 How it works .................................................................................................................................................. 5 Active Directory Integration .......................................................................................................................... 5 Licensing ........................................................................................................................................................ 6 System requirements .................................................................................................................................... 6

Deploying OCS MobileStatus ............................................................................................................................. 7 Upgrading ...................................................................................................................................................... 7

Deploying for Office Communications Server 2007 R2 ..................................................................................... 8 Installation of pre-requisites ......................................................................................................................... 8

Requirements note .................................................................................................................................... 8 Installation of the program files .................................................................................................................... 8 Certificates ..................................................................................................................................................... 9

Create a certificate for OCS MobileStatus ................................................................................................. 9 Exporting the certificate .......................................................................................................................... 13 Installing a certificate .............................................................................................................................. 15

Deploying for Lync and Skype for Business Server .......................................................................................... 20 Standalone installation ................................................................................................................................ 20

Installing pre-requisites ........................................................................................................................... 20 Management Store Replication ............................................................................................................... 21 Request a certificate ................................................................................................................................ 22 Create a trusted application .................................................................................................................... 22

Installing on a Lync Server 2013 or Skype for Business frontend server ..................................................... 23 Installation of the program files .................................................................................................................. 24

OCS MobileStatus Configuration ..................................................................................................................... 25 Connections ................................................................................................................................................. 25 E-mail ........................................................................................................................................................... 27 Other ............................................................................................................................................................ 28

Active Directory integration .................................................................................................................... 30 Privacy ......................................................................................................................................................... 30

Testing the installation .................................................................................................................................... 32

Running OCS MobileStatus .............................................................................................................................. 33 Running as a service .................................................................................................................................... 33

Troubleshooting .............................................................................................................................................. 34 Pre-requisites missing.................................................................................................................................. 34

UCMA Core missing ................................................................................................................................. 34 No trusted application pool ..................................................................................................................... 34 No trusted application ............................................................................................................................. 34

Active Directory communication ................................................................................................................. 34 Not in a domain ....................................................................................................................................... 34

Certificate problems .................................................................................................................................... 35 Missing local certificate ........................................................................................................................... 35 Missing Certification Authority certificate .............................................................................................. 35 Incorrect certificate used ........................................................................................................................ 35

Page 3: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 3 of 42

Office Communications Server timeouts .................................................................................................... 35 Incorrect GRUU ........................................................................................................................................ 35 Firewall configuration .............................................................................................................................. 36

Lync or Skype for Business provisioning ...................................................................................................... 36

Appendix A: OCS MobileStatus settings .......................................................................................................... 37

Appendix B: Log configuration ........................................................................................................................ 41

Page 4: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 4 of 42

Release Notes

There are no known issues in the 2.6 release of OCS MobileStatus. The 2.6 release adds support for

Microsoft Skype for Business Server 2015.

Page 5: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 5 of 42

Introduction

OCS MobileStatus enriches the presence information in Lync and Skype for Business Server with

information about mobile phone availability. Using information sent by the mobile network operator to

your network, OCS MobileStatus and MobileStatus Server will publish presence into your Office

Communications Server, Lync Server, or Skype for Business Server environments for all enabled users.

This document describes the installation and configuration of the OCS MobileStatus software.

How it works The network operator pushes mobile phone availability information to the MobileStatus Server. The

MobileStatus Server may be located in your DMZ or elsewhere in your network infrastructure. The OCS

MobileStatus application connects to the MobileStatus Server to receive the mobile phone availability

information. The server running OCS MobileStatus must be part the of the Active Directory domain where

your user accounts are located.

Whenever a mobile phone availability update is received from your operator, OCS MobileStatus will look up

which user owns the given mobile phone, and then change the user’s availability in the Office

Communications, Lync Server or Skype for Business Server environments.

Active Directory Integration Office Communications, Lync, or Skype for Business Server users are linked to the mobile phone numbers

using the telephone number fields in the Active Directory user properties. When OCS MobileStatus starts,

or during a scheduled reload, it will read all users which are OCS/Lync/Skype for Business enabled (have a

SIP URI), and which have at least one phone number from the Active Directory. The users who should have

their status updated can be selected using the configuration program.

The user objects in the specified Active Directory Organizational Units, Groups or dynamic distribution lists

are used if they have a SIP URI and they have at least one phone number configured. Additionally, a user

Page 6: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 6 of 42

can be excluded if the user object’s “Description” field (on the Telephones tab of the User properties in

“Active Directory Users and Computers”) contains the string “No OCSMS”.

Licensing The OCS MobileStatus use license is based on the number of users for which the mobile phone availability

is set in the Office Communications Server environment. The users are counted only if a status update is

received for one of the numbers. If there are OCS/Lync/Skype for Business enabled users which should not

have their mobile phone availability published to the Office Communications Server/Lync/Skype for

Business environment, you must mark them as such by entering “No OCSMS” in the Description field of the

user object properties. The user count is reported to the license web service via the internet. If OCS

MobileStatus cannot reach the license server, it will not be able to function.

OCS MobileStatus requires a license key to run, and will not start without it.

System requirements The following requirements must be met before using OCS MobileStatus on a server:

2,8 GHz Dual-Core 64-bit CPU (32-bit possible only for Office Communications Server 2007 R2)

200 MB available disk space

1 GB RAM (add 1 GB for each 5000 users)

Domain membership

Windows Server 2003 or 2008 (only for Office Communications Server 2007 R2)

Windows Server 2008 R2 SP1 (only for Lync Server or Skype for Business Server. Server Core role not supported, requires Desktop Experience feature)

Windows Server 2012 (only for Lync Server 2013 or Skype for Business Server)

Windows Server 2012 R2 (only for Skype for Business Server)

Office Communications Server 2007 R2, Lync Server 2010 or 2013, or Skype for Business Server 2015 in the same Active Directory domain

Microsoft .Net Framework: o For OCS 2007 R2 and Lync Server 2010: .Net Framework 3.5 o For Lync Server 2013: .Net Framework 4.0 o For Skype for Business Server: .Net Framework 4.5

Note: The Microsoft Unified Communications Managed API for Office Communications Server 2007 R2

cannot be installed on a server that has the Microsoft .Net Framework 4 installed. To install the UCMA API

for OCS 2007 R2 on a server with the .Net Framework version 4 first uninstall the .Net Framework, and then

re-install it after installing the UCMA API for OCS 2007 R2.

The UCMA API cannot be installed side-by-side with previous versions.

Page 7: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 7 of 42

Deploying OCS MobileStatus

Due to the different provisioning methods and API versions, the deployment of OCS MobileStatus differs

depending on whether the software is used with Office Communications Server 2007 R2, Lync or Skype for

Business Server.

Note that the software for the different versions of Office Communications, Lync, and Skype for Business

Server is not the same. Make sure that you have downloaded the correct version of OCS MobileStatus.

In short, the deployment of the OCS Mobile Status application requires four steps:

1. Installation of pre-requisites 2. Installation of the program files 3. Creating and installing a certificate 4. Configuring the program

The steps are outlined in the following chapters. The final chapter covers troubleshooting.

Upgrading To upgrade OCS MobileStatus from a previous version, simply run the new version’s installation program.

When changing between different versions of Office Communications Server 2007 R2, Lync 2010/2013 or

Skype for Business Server, it is necessary to uninstall the Microsoft UCMA runtime and install the new

version. The Microsoft UCMA runtime versions cannot co-exist.

After upgrading the UCMA runtime, it is required to upgrade OCS MobileStatus to the correct version for

the installed UCMA runtime.

To avoid downtime, upgrading between OCS, Lync and Skype for Business Server should be done by

installing UCMA and OCS MobileStatus on a new server, and then removing the old server from the OCS,

Lync or Skype for Business topology.

When performing an in-place upgrade of a Lync Server 2013 frontend server to Skype for Business 2015,

the upgrade process will also install the Skype for Business version of the UCMA runtime. If your OCS

MobileStatus server is running on the frontend server, you must also update OCS MobileStatus to the

Skype for Business version afterwards.

Page 8: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 8 of 42

Deploying for Office Communications Server 2007 R2

Installation of pre-requisites These pre-requisite software packages need to be installed before OCS Mobile Status can run.

OCSCore.msi

.NET Framework 3.5 Service Pack 1

Visual C++ 2008 Redistributable Package

Microsoft Unified Communications Managed API 2.0 Core Redistributable (UcmaRedist.msi) The installer automatically installs the Visual C++ 2008 redistributable package as well as the UCMA core

redistributable.

The computer running OCS MobileStatus must also have a certificate to communicate with the Office

Communications Server infrastructure using TLS encrypted connections. The certificate must be trusted by

the server with which the OCS MobileStatus application communicates, and the root certificate authority

used to sign the server’s certificate must also be installed on the computer running OCS MobileStatus. The

Office Communications Server certificate creation and assignment process is described in the chapter

Certificates on page 9.

Requirements note

An application such as OCS MobileStatus which is based on the UCMA 2.0 Core SDK must be provisioned by

Microsoft Office Communications Server 2007 R2. The administrator for the computer on which the

application is deployed must ensure that Microsoft Office Communications Server 2007 R2, Core

Components (OCSCore.msi) is present for successful provisioning before deploying the application, and

must ensure that Office Communications Server 2007 Administrative Tools (AdminTools.msi) is installed on

the deployment computer.

OCSCore.msi does not have a redistribution license and is installed when the Office Communications Server

2007 R2 Administrative Tools are installed. The OCSCore.msi is installed as part of the Office

Communications Server 2007 R2 management tools, but can also be installed separately using the MSI file

located on the Office Communications Server 2007 R2 media.

If you install Office Communications Server 2007 R2 Administrative Tools through the Office

Communications Server deployment user interface, all of the following pre-requisites are installed

automatically: Visual C++ 2008 Redistributable, .NET 3.5 SP1, and OCSCore.msi.

Installation of the program files OCS MobileStatus is installed using the installation program. The installation program will also check for

necessary pre-requisites, and will install the required Microsoft Visual C++ 2008 and UCMA Core

Redistributable packages.

After the installation program has finished copying files, it is possible to start the OCS MobileStatus

Configuration program.

It is recommended that you start the Configuration program to configure the OCS MobileStatus settings.

Page 9: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 9 of 42

Certificates The communication between OCS MobileStatus and the Office Communications Server infrastructure is

encrypted using Transport Layer Security (TLS). TLS requires certificates to validate server identity and

perform the encryption. This means that the server running OCS MobileStatus must have a certificate

which is trusted by the Office Communications Server infrastructure, and the Office Communications Server

with which the OCS MobileStatus communicates must have a certificate which is trusted on the computer

that runs OCS MobileStatus.

If OCS MobileStatus is installed on the same computer as the Office Communications Server with which it

communicates, the necessary certificates are normally already generated and installed during the Office

Communications Server deployment. In that case it is normally not required to create a separate certificate

for OCS MobileStatus.

A certificate must be generated if OCS MobileStatus is running on a different computer. Depending on the

organization’s Public Key Infrastructure, the actual procedure may vary. The procedures required for a

regular installation are described in this chapter.

Create a certificate for OCS MobileStatus

Creating a certificate for the computer which is running OCS MobileStatus is done from within the Office

Communications Server management tool.

When the tool has been started, right-click on a server in the Office Communications Server pool.

Select “Certificates” in the pop-up menu to display the certificate wizard.

Page 10: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 10 of 42

In the first step of the wizard called

“Available Certificate Tasks”, select

“Create a new certificate” and click

[Next].

Select “Send the request immediately

to an online certification authority” and

click [Next].

Enter a name for the certificate, for

example the fully qualified domain

name of the computer running OCS

MobileStatus.

Verify that the “Mark cert as

exportable” check box is checked, and

click [Next].

Page 11: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 11 of 42

Enter information about your

organization into the fields in the

“Organization Information” step of the

certificate wizard and click [Next].

The “Subject name” of the certificate

must be the fully qualified domain

name of the computer running OCS

MobileStatus.

Since the name of the local computer

(the Office Communications Server

computer) is not part of the certificate,

the wizard will present a warning.

Click [Yes] to acknowledge and

continue the wizard.

Page 12: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 12 of 42

In the “Geographical Information” tab

it is necessary to enter information

about Country, State/Province and

City/Locality. Enter the information and

click [Next].

The wizard has gathered enough

information to create send the

certificate request to a certificate

authority.

In an Office Communications Server

environment there must be a

certificate authority. Select the CA from

the list and click [Next].

Finally, you need to confirm the

certificate request.

Verify that the information is correct

and click [Next] to request the

certificate from the certificate

authority.

Page 13: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 13 of 42

At this point the certificate has been created and it is now necessary to export it from the Office

Communications Server computer so it can be imported on the computer running OCS MobileStatus.

Exporting the certificate

You must install the certificate on the computer running OCS MobileStatus. But first it must be exported

from the computer running Office Communications Server where you created the certificate earlier.

To export the certificate, start the Office Communications Server certificate wizard again. This is done by

right-clicking a server in the Office Communications Server pool and selecting “Certificates”.

When the certificate is created, you

must NOT assign it to the Office

Communications Server, but instead

select “Assign certificate later” and

click [Next].

If you accidentally choose “Assign

certificate immediately”, you will assign

an incorrect certificate to the Office

Communications server itself. If you

accidentally do this restart the wizard

and select “Assign an existing

certificate” in the first step. Then select

the correct certificate for the server.

Finally, you need to confirm the

certificate request.

Verify that the information is correct

and click [Next] to request the

certificate from the certificate

authority.

Page 14: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 14 of 42

In the first step of the wizard select

“Export a certificate to a .pfx file” and

click [Next].

Select the certificate which was created

earlier and click [Next].

Enter a path to the filename where the

certificate should be stored.

Check the “Include all certificates in the

certification path if possible” checkbox

and click [Next].

Page 15: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 15 of 42

When the certificate has been exported to a file, you need to copy that file to the computer running OCS MobileStatus. The certificate must be installed on that computer.

Installing a certificate

The certificate used for communicating with Office Communications Server must be placed in the Machine

certificate store on the computer running OCS MobileStatus.

Importing certificates is a straight forward process, but the Windows Certificate tool does not have a start

menu item. It is necessary to start the Microsoft Management Console and add the Certificates snap-in to

have a user interface for importing certificates to the Machine certificate store.

Since the certificate contains a private

key, you must enter a password to

protect it. Use a strong password.

Click [Next] after entering the password

to export the certificate to a file.

Start the Microsoft Management

Console by entering “mmc” in the Start

-> Run window and clicking [OK].

The Certificates snap-in must be added

to the Microsoft Management Console.

Click “File” -> “Add/Remove Snap-in”

to open the “Add/Remove Snap-in”

window.

Page 16: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 16 of 42

Select the “Certificates” snap-in and

click [Add].

Since the certificate must be added to

the Machine certificate store, select

“Computer account” and click [Next].

Choose “Local computer” as this is the

computer where the certificate needs

to be imported. Click [Finish] to add the

snap-in.

Back in the “Add or Remove Snap-ins”

window click [OK] to close it and return

to the Microsoft Management Console

main window.

Page 17: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 17 of 42

Next, expand the “Certificates” tree

and select “Personal” to choose the

correct certificate store.

Then open the “Action” menu and

select “All Tasks” -> “Import” to start

the certificate import wizard.

Enter the file name or browse to the

location of the certificate .pfx file and

click [Next] to choose the certificate.

Page 18: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 18 of 42

You must enter the password for the

certificate and make sure that “Include

all extended properties” is checked

before clicking [Next].

Then select “Place all certificates in the

following store” and select the

“Personal” store before clicking [Next].

Finally verify the selected certificate

and import settings before clicking

[Finish] to perform the certificate

import.

Page 19: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 19 of 42

After you have imported the certificate

it will appear in the Management

Console along with the certificate of

the Certification Authority which was

used to generate the certificate.

The certificate import process is now

complete, and you can close the

Microsoft Management Console

window.

Page 20: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 20 of 42

Deploying for Lync and Skype for Business Server

Deploying applications in the Lync and Skype for Business Server environment is radically different than

with Office Communications Server 2007 R2. The changes benefit load balancing and enable other

improvements possible with Lync Server 2010 and newer.

To deploy OCS MobileStatus in a Lync or Skype for Business server environment, it is necessary to install

Lync or Skype for Business server pre-requisites and use the Lync or Skype for Business Server management

shell to provision the OCS MobileStatus software.

Standalone installation It is recommended to install OCS MobileStatus on a separate application server, and not directly on a Lync

or Skype for Business server, but it is possible to install it on a Lync Server 2013 or Skype for Business 2015

frontend. The necessary pre-requisite installation and topology changes differ slightly from a standalone

installation, so the process is described after the standalone installation steps below. If you are installing on

a Lync 2013 or Skype for Business 2015 frontend server, please follow the instructions starting on page 23.

Installing pre-requisites

OCS MobileStatus for Lync uses dynamic provisioning to connect to the Lync server environment. This

requires that the server where OCS MobileStatus is run must have a replica of the Lync Central

Management store. This requires the Lync “Unified Communications API Runtime” (UCMA). For Lync 2010

it is called UCMA 3.0, for Lync 2013 it is called UCMA 4.0, and for Skype for Business Server 2015 it is called

UCMA 5.0.

They can all be downloaded from the Microsoft web site.

Please note their system requirements. They all have different requirements regarding Windows versions

and installed Windows features.

After installing the special pre-requisites, install the “Unified Communications Managed API Runtime”.

When the UCMA runtime is installed, it is necessary to install the OCSCore.msi package to provide the

necessary management tools. The UCMA runtime installer places OCSCore.msi in a folder located in

c:\ProgramData.

The C:\ProgramData is a hidden folder, so you should make Windows Explorer show hidden files before you

can navigate to it.

You can also write the full path of the folder below to the Windows’ Run dialog:

%programdata%\Microsoft\Lync Server\Deployment\cache

or

%programdata%\Microsoft\Skype for Business Server\Deployment\cache

Page 21: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 21 of 42

The cache folder contains a subfolder which is named after the UCMA runtime version you have installed. It

can be 4.0.7577.0, 5.0.8132.0, 6.0.91319.0 or something different. Open the folder and the Setup folder

located in it.

From there you can run “OCSCore.msi” to install the core Lync components.

The OCSCore will install the UCMA setup bootstrapper in C:\Program Files. Now run one of these

commands depending on your version:

C:\Program Files\Microsoft Lync Server 2010\Deployment\Bootstrapper.exe /BootstrapLocalMgmt /MinCache

C:\Program Files\Microsoft Lync Server 2013\Deployment\Bootstrapper.exe /BootstrapLocalMgmt /MinCache

C:\Program Files\Skype for Business Server 2015\Deployment\Bootstrapper.exe /BoostrapLocalMgmt /MinCache

This will install the last Lync or Skype for Business pre-requisites or prompt you to install them if the server

is missing some required Windows features.

Management Store Replication

OCS MobileStatus uses a feature which was introduced in Lync Server 2010 called “dynamic provisioning”.

Dynamic provisioning enables applications such as OCS MobileStatus to have their Lync configuration

updated when the Lync topology changes. To be able to use dynamic provisioning, the application server

running OCS MobileStatus must have a replica of the Lync management store. The next steps are necessary

to create this replica.

To enable the management store replication run these commands in the Lync Server Management Shell1 on

the server where OCS MobileStatus should run:

Set-Service Replica -StartupType Automatic Start-Service Replica Enable-CSReplica

The next step is to add the server which should run OCS MobileStatus as an application server in the Lync or

Skype for Business topology:

New-CsTrustedApplicationPool -Identity ocsmobilestatusserver.example.com -Registrar frontendserver.example.com -Site SiteId -ComputerFqdn ocsmobilestatusserver.example.com

Replace the identity, front end server, Site Id, and server FQDN with names which apply to the current Lync

or Skype for Business environment. The ComputerFQDN parameter is the hostname of the server where

OCS MobileStatus will be installed. The SiteId parameter can be retrieved using the PowerShell command

Get-CSSite. If there is only one site in the Lync or Skype for Business environment, the SiteId is 1.

To enable the topology change and force the management store replication run:

1 The management shell can be found in the Start menu in the Lync Server folder.

Page 22: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 22 of 42

Enable-CSTopology Invoke-CsManagementStoreReplication

The replication should take about five minutes, but time may vary depending on the size of the Lync or

Skype for Business environment. The replication status can be monitored using

Get-CsManagementStoreReplicationStatus -ReplicaFqdn ocsmobilestatusserver.example.com

When the UpToDate field says True instead of False, the replication is complete.

Request a certificate

Communication between OCS MobileStatus and the Lync or Skype for Business server is encrypted with

Transport Layer Security. TLS encryption requires that both sides in a communication link have mutually

trusted certificates. The CS management PowerShell has two cmdlets which are used to request and assign

a certificate to the server running OCS MobileStatus. It is necessary to start the Lync or Skype for Business

Server Management Shell as administrator to have the required permissions for the certificate

management cmdlets.

First request a certificate from the Active Directory Certificate Authority:

Request-CsCertificate -New -Type Default -CA dc.example.com\ExampleCA

This command will connect to the Certificate Authority called “ExampleCA” on the Domain Controller called

“dc.example.com” and request a new certificate to be created. Replace the names with values from your

environment.2

If successful, the command will return a new certificate. Note the certificate Thumbprint, it will be used in

the next command.

The certificate is now created. Before it can be used, it must be assigned to the server. This is done with the

Set-CsCertificate cmdlet:

Set-CsCertificate -Type Default -Thumbprint <certificate thumbprint>

Use the Thumbprint displayed when you ran the Request-CsCertificate cmdlet.

With the certificate created and assigned, the final step in the Lync or Skype for Business configuration is to

create a trusted application object in the topology.

Create a trusted application

The final step in the Lync or Skype for Business deployment is creating a trusted application in the topology.

New-CsTrustedApplication -ApplicationId OCSMobileStatus -TrustedApplicationPoolFqdn appserver01.example.com -Port 45871

The TrustedApplicationPoolFqdn should be the name of the server where OCS MobileStatus is installed.

The Port number is the TCP port where the Lync or Skype for Business server(s) will connect back to OCS

2 Active Directory certificate authority names can be retrieved using certutil -ADCA

Page 23: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 23 of 42

MobileStatus. It may be changed if desired (remember to add firewall exceptions). The ApplicationId is part

of the unique identifier which OCS MobileStatus uses to discover the dynamic provisioning information,

and it must not be changed.

To enable the last change, run

Enable-CsTopology

again.

When all the above steps are complete, you can continue installing and configuring the OCS MobileStatus

for Lync or Skype for Business software as described in “Installation of the program files” on page 24.

Installing on a Lync Server 2013 or Skype for Business frontend server If you want to install OCS MobileStatus on a Lync 2013 or Skype for Business frontend server, you must

perform the steps as outlined below to prepare the frontend server, and to add it to the topology as a

trusted application pool with OCS MobileStatus running as a trusted application.

Download and install version 4.0 or 5.0 of the “Unified Communications Managed API Runtime” from

microsoft.com. Version 4.0 is for Lync 2013 and version 5.0 is for Skype for Business Server 2015.

Even though the server you are installing the software on is a frontend server, it is not part of a Trusted

Application Pool in the Lync or Skype for Business server topology. To create a new trusted application pool

for the server, run the following command in a Lync or Skype for Business Server Management shell

prompt:

New-CsTrustedApplicationPool -Identity frontendserver.example.com -Registrar frontendserver.example.com -Site SiteId -ComputerFqdn frontendserver.example.com

Replace the identity, front end server, Site Id, and server FQDN with names which apply to the current Lync

or Skype for Business environment. The ComputerFQDN parameter is the hostname of the server where

OCS MobileStatus will be installed – in this case it is the same as the frontend server used as the Registrar.

The SiteId parameter can be retrieved using the PowerShell command Get-CSSite. If there is only one

site in the Lync or Skype for Business environment, the SiteId is 1.

The command will let you know that:

Enable-CsTopology must still be run for all changes to take effect. Bootstrapper must be run on computer frontendserver.example.com.

So run

Enable-CsTopology

and then either

C:\Program Files\Microsoft Lync Server 2013\Deployment\Bootstrapper.exe

or

Page 24: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 24 of 42

C:\Program Files\Skype for Business Server 2015\Deployment\Bootstrapper.exe

to install the necessary Lync or Skype for Business server parts.

Finally, the OCSMobileStatus trusted application must be added to the toplogy. This is done using this

command:

New-CsTrustedApplication -ApplicationId OCSMobileStatus -TrustedApplicationPoolFqdn frontendserver.example.com -Port 45871

The TrustedApplicationPoolFqdn should be the name of the server where OCS MobileStatus is installed.

The Port number is the TCP port where the Lync or Skype for Business server(s) will connect back to OCS

MobileStatus. It may be changed if desired (remember to add firewall exceptions). The ApplicationId is part

of the unique identifier which OCS MobileStatus uses to discover the dynamic provisioning information,

and it must not be changed.

To enable the last change, run

Enable-CsTopology

again.

When all the above steps are complete, you can continue installing and configuring the OCS MobileStatus

software as described in “Installation of the program files” below.

Installation of the program files OCS MobileStatus is installed using the installation program. The Lync and Skype for Business editions will

not check for the pre-requisites and may be installed before or after running the above Lync or Skype for

Business specific deployment.

After the installation program has finished copying files, it is possible to start the OCS MobileStatus

Configuration program.

It is recommended that you start the Configuration program to configure the OCS MobileStatus settings.

If you have not completed the Lync or Skype for Business configuration as described above you will receive

errors when starting the OCS MobileStatus service.

Page 25: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 25 of 42

OCS MobileStatus Configuration

All settings used by OCS MobileStatus can be defined in the OCS MobileStatus Configuration program. The

Configuration program can also be used to control the OCS MobileStatus Windows service.

The settings are divided into four tabs:

Connections

E-mail

Other

Privacy The settings in the “Connections” tab relate to OCS MobileStatus connectivity to the Office

Communications Server, Lync, or Skype for Business environment and the MobileStatus Server. The settings

in the “E-mail” tab are used for e-mail alerting in case of fatal errors and warning messages in the OCS

MobileStatus application.

The settings in the “Other” tab are for advanced configuration and inputting the License key.

It is possible to define working hours, and choose privacy related settings in the “Privacy” tab.

When you have changed configuration settings, you must save the settings by clicking the “Save” button.

Changes do not take effect before they are saved and the OCS MobileStatus service or console applications

have been restarted.

Connections The settings on the “Connections” tab vary depending on the installed version of OCS MobileStatus. For

communication with Office Communications Server 2007 R2 there are a number of configuration settings

which are required.

For communication with a Lync or Skype for Business Server environment, the only required setting on the

“Connections” tab is the hostname or IP address of the MobileStatus Server. The Lync Server address is not

required if the environment is configured for Lync server autodiscovery. If it isn’t, then the address of the

Lync Server frontend with which OCS MobileStatus should initiate communication must be entered. All

other settings which are present in the screenshots below are only relevant for communication with OCS

2007 R2, and are replaced by the dynamic provisioning described in the chapter Deploying for Lync and

Skype for Business Server on page 20.

Page 26: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 26 of 42

MobileStatus Server

Server FQDN / IP The hostname or IP address of the server where MobileStatus Server

is installed.

Office Communications Server3

Server / pool FQDN The fully qualified domain name of the Office Communications Server

or server pool to which OCS MobileStatus should connect. The list is

populated from your OCS environment.

OCS TLS Port The TCP port number which OCS MobileStatus can use to connect to

your OCS environment. The OCS connection is TLS encrypted. Default

port is 5061.

OCS application port The TCP port where the OCS environment will contact OCS

MobileStatus. Default port is 45871.

Local hostname The hostname of the computer running OCS MobileStatus. The

hostname entered must be in a form which can be resolved by the

OCS environment. If you click the “Default” button, the machines local

hostname is used.

GRUU The Globally Routable UA URI which is generated when creating a

trusted service entry. Click “Create” to generate the trusted service

3 These parameters are not present in the Lync or Skype for Business Server version of OCS MobileStatus

Page 27: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 27 of 42

entry and GRUU.

Note that you must have domain administrative privileges to be able

to create the GRUU.

Certificate3

Certificate subject and serial

number

OCS MobileStatus communicates with the OCS environment using TLS

which requires a certificate. The certificate can be selected from a list

of installed machine certificates by clicking “Select”. To create and

install a certificate which can be used by OCS MobileStatus see

Certificates on page 9.

E-mail OCS MobileStatus can send e-mails to configured addresses in case of errors and warnings which have

impact on the function of OCS MobileStatus. To enable e-mail alerts, configure the settings related to the e-

mail server, From address and To addresses.

E-mail alerting

E-mail alerting enabled OCS MobileStatus will send alerts about warnings and fatal errors

using the settings configured here if this option is checked.

SMTP server The SMTP server to use when sending alert e-mails.

From address The sender e-mail address of the alert e-mails.

Page 28: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 28 of 42

To addresses Enter a semi-colon separated list of e-mail addresses which should

receive the e-mail alerts.

It is possible to test the E-mail alert settings by clicking the Test button. This will make OCS MobileStatus

Configuration attempt to send an e-mail using the entered values.

If your server requires login or other advanced settings, these can be set in the lower part of the window.

Advanced e-mail options

Username The username to use if the SMTP server requires login. If a username

is configured, the e-mail alerting system will attempt to log on to the

SMTP server.

Password The password to use when the SMTP server requires login.

Use SSL for SMTP Enable this option if the server uses SSL encryption.

Port The SMTP server's port number. Default is 25.

Other The settings on the “Other” tab are used for advanced configuration as well as the License key information.

Active Directory

Active Directory Import root

path

When importing users for which OCS MobileStatus should set the

presence, it will automatically search for enabled uses in the Active

Directory. If you would like OCS MobileStatus to not use the entire

Page 29: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 29 of 42

Active Directory when importing, you can select specific organization

units (folders) in the Active Directory, or choose groups or Exchange

dynamic distribution lists which contain the users you want imported.

If you choose an organizational unit, it sub-OUs will also be imported.

You can choose more than one group or OU. Users are imported if

their accounts are placed in those OUs (or sub-OUs), or if they are

members of groups selected or if the group objects are placed in a

selected OU.

Country code When OCS MobileStatus receives a status update from the mobile

phone network, the phone numbers are received with a country code.

If the user phone numbers in the Active Directory are not configured

with a country code, you must enter a country code prefix, so the

numbers match. The country code prefix must be entered with +, e.g.

+47 for Norway.

Import interval Select a periodic update interval to determine how often OCS

MobileStatus should check for updates in the Active Directory.

Advanced Settings

OCS Busy text The text to be displayed next to users in Office Communicator and

other client applications when the user’s mobile phone is busy.

Default is “Mobile phone busy”.

OCS Busy value The OCS availability value to be set when a user’s mobile phone is

busy. This should be a value close to 6500, as the value will determine

the color of the icon next to the user when the user’s mobile phone is

busy. Default is 6499.

OCS Off text The text to be displayed next to users in Office Communicator and

other client applications when the user’s mobile phone is off or has

roamed to a network where your operator cannot get mobile phone

availability information. Default is “Mobile phone off”.

OCS Off value The OCS availability value to be set when a user’s mobile phone is off.

This should be a value less than 6500, as the value will determine the

color of the icon next to the user when the user’s mobile phone is off.

Default is 3500. Values higher will change the color of the status

gumball of the user.

License key

Page 30: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 30 of 42

Company name Enter the company name exactly as typed in your license key

information.

License Key Enter the license key exactly as typed in your license key information.

The license key information can be validated by clicking the “Check” button. This will contact the license

server to check your input.

Active Directory integration

OCS MobileStatus will import Active Directory users where the following conditions are met:

1. User has a SIP URI (is Lync/OCS/Skype for Business enabled). 2. The Notes field does not contain “No OCSMS”. 3. The user has a phone number defined in one or more of these fields:

Mobile

Telephone

IP Phone

Pager

Home Telephone By default, OCS MobileStatus will import all user objects in the entire Active Directory where the above

conditions are met.

If you want to limit the user accounts which are imported, it is possible to define which organizational units

OCS MobileStatus should search for users, or which groups or Exchange dynamic distribution list should be

used. Users which are members of a group which is located in a selected OU will also be imported.

Privacy The settings in the “Privacy” tab enable you to choose the interval in which you want status updated, or

disallow status updates for offline users.

Page 31: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 31 of 42

Privacy Settings

Publish presence while user is

offline

When checked, the presence is updated even if the user is offline in

the Office Communicator, Lync, or Skype for Business clients (or other

clients such as Communicator Web Access, Office Communicator

Phone Edition etc.).

When unchecked, the mobile phone busy state will not be set while a

user is offline. If the user is busy when he/she goes offline, the busy

state will be cleared when the phone call ends.

For this setting to work properly, OCS MobileStatus must be able to

get status updates from OCS/Lync/Skype for Business (i.e. incoming

port 45871 must be opened in the firewall configuration). In addition,

in some circumstances, OCS MobileStatus is not informed of an offline

state by OCS/Lync until the user has changed state at least once after

startup.

The setting is checked by default.

Only publish presence in

working hours

When checked, the working hours below dictate when user status is

updated based on the mobile phone status.

If a user is busy when the working hours end, the busy state will be

cleared when the phone call ends. If a user is busy when the working

hours start, no change will occur until the next phone call is

established.

This setting is unchecked by default.

Working Hours

You can define the hours of business for each weekday.

If a specific weekday should be open at all hours, use 00:00 as starting

time and 23:59 as ending time.

If a specific weekday should be closed at all hours, use the same

starting and ending time, e.g. 00:00 as in the example above.

The working hours settings are only used if you checked the setting

above.

Page 32: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 32 of 42

Testing the installation

To test the configuration settings and the proper functioning of OCS MobileStatus it is possible to run the

program as a console application.

On startup it will establish contact with the Office Communications, Lync, or Skype for Business server and

the MobileStatus Server. When connection to both has been established, it will begin to handle incoming

mobile phone status updates.

To verify that configuration settings are correct, run the OCS MobileStatus Console application and verify

that it can connect to both the MobileStatus Server and the Office Communications, Lync, or Skype for

Business server. Also verify that when a mobile phone for a configured user changes state, the user should

have his or her presence information updated in Office Communicator, Lync, or Skype for Business client.

Note that if you run the OCS MobileStatus Console application on Windows 2008 it must run with

administrative privileges to be able to access the certificate.

To run OCS MobileStatus as a command line application, you can start it by double-clicking it from the

program installation folder (default is C:\Program Files\OCS MobileStatus). The program is named

“OCSMobileStatusConsole.exe”.

Page 33: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 33 of 42

Running OCS MobileStatus

OCS MobileStatus is available as both a Windows command line application and a Windows Service. The

service can run unattended, and automatically start when Windows starts, but the command line

application is better for debugging configuration issues.

To run OCS MobileStatus as a command line application, you can start it by double-clicking it from the

program installation folder (default is C:\Program Files\OCS MobileStatus). The program is named

“OCSMobileStatusConsole.exe”. (If the server is running Windows 2008, the OCS MobileStatus Console

application needs to be run with administrative privileges to give it access to the Machine certificate store).

The installation program configures the Windows Service, but does not start it automatically, as it will not

run without the necessary configuration settings. The service is configured to start automatically when

Windows starts.

When you have verified that the configuration settings are correct using the command line application, you

should use the OCS MobileStatus Windows Service to run OCS MobileStatus in a production environment.

Running as a service You can start the OCS MobileStatus service using the Configuration program. To start the service, open the

“Service” page in the configuration program and click the “Start” button.

If you make changes to the configuration settings, it is required to restart the service. You can stop the OCS

MobileStatus using the “Stop” button on the “Service” page in the configuration program.

If the service starts and does not stop immediately, it is working properly and connected to both the Office

Communications Server, Lync, or Skype for Business server and the MobileStatus Server.

If the service stops unexpectedly, look in the Windows Event Viewer Application log for the cause, and use

the command line application to check for problems.

Page 34: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 34 of 42

Troubleshooting

If the OCS MobileStatus console application or the service stop functioning check the Windows Application

Event log for errors. The program will log all fatal errors to the Application Event log.

Pre-requisites missing

UCMA Core missing

If you are running OCS MobileStatus which does not have the Office Communications Server Unified

Communications Managed API Core (UCMA Core) files installed, the program will not start. The event log

message will contain the following information “Could not load file or assembly SIPEPS”. To resolve the

problem make sure that the pre-requisites are installed correctly.

No trusted application pool

If you start OCS MobileStatus on a server which has not been configured as part of a trusted application

pool in the Lync or Skype for Business topology, you will get an error in the event log such as this:

Shutting down due to fatal error:

Invalid configuration. Provisioning information is missing in CS environment: The settings wrapper failed to initialize.

The ExternalServer service is not installed on the machine.

To solve the problem, create a trusted application pool using the New-CsTrustedApplicationPool

cmdlet as described in the chapter Deploying for Lync and Skype for Business Server on page 20.

No trusted application

If you start OCS MobileStatus on a server which has not been configured with the OCSMobileStatus trusted

application in the Lync or Skype for Business topology, you will get an error in the event log such as this:

Shutting down due to fatal error:

Invalid configuration. Provisioning information is missing in CS environment.

Microsoft.Rtc.Collaboration.ProvisioningFailureException:Application with id(ocsmobilestatus) not found or a default port

has not been configured for it.

To solve the problem, create a trusted application using the New-CsTrustedApplication cmdlet as

described in the chapter “Create a trusted application” on page 22.

Active Directory communication

Not in a domain

The computer running OCS MobileStatus must be part of an Active Directory domain. It uses Active

Directory to retrieve users who have a telephone number and a SIP URI (i.e. are enabled for Office

Communications Server). If the computer running OCS MobileStatus is not part of a domain, an event log

message containing the following is logged: “The specified domain either does not exist or could not be

contacted”.

Resolve the problem by joining the computer to an Active Directory domain containing the users for whom

OCS MobileStatus should change presence.

Page 35: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 35 of 42

Certificate problems

Missing local certificate

If the event log message contains information such as “Service cannot be started.

System.ArgumentNullException: Value cannot be null. Parameter name: certificate” the problem is caused

by either a missing local certificate or incorrect information in the LocalHostName or

CertificateSerialNumber configuration parameters.

OCS MobileStatus cannot communicate with the Office Communications Server unless you have installed a

certificate which it can use. In some cases OCS MobileStatus cannot find the correct certificate in the

certificate store.

OCS MobileStatus cannot find a certificate if you do not have a certificate installed with the same subject

name as the configuration parameter LocalHostName, or you have configured a CertificateSerialNumber

which does not match any of the installed certificates.

It is required that the certificate has a private key.

To resolve the problem make sure that you have installed the correct certificate, and that the configuration

parameter LocalHostName matches the subject name (or Subject Alternate Name). Or if you have

configured the Certificate Serial Number parameter, a certificate must have the given serial number.

Missing Certification Authority certificate

A TLS session cannot be established if the computer running OCS MobileStatus does not know the

certification authority which created the certificate used by the Office Communications Server. This will

result in OCS MobileStatus stopping while trying to establish connection to the Office Communications

Server to publish presence for a user. The failure in the event log will contain information such as “The

certificate chain was issued by an authority that is not trusted”.

This is normally only a problem if the computer running OCS MobileStatus is not in the same domain as the

computer running Office Communications Server, or the certificate used on the Office Communications

Server is using a self-signed certificate.

To resolve the problem install the certificate for the certification authority used to sign the Office

Communications Server certificate on the computer running OCS MobileStatus.

Incorrect certificate used

If you have configured OCS MobileStatus to use an incorrect certificate, such as one with a different DNS

name than the server running OCS MobileStatus, you may get an error message such as this:

“RealTimeException creating OCS endpoint SIP URI”.

Office Communications Server timeouts

Incorrect GRUU

If OCS MobileStatus has been configured with an incorrect GRUU, the Office Communications Server may

not be able to send data to OCS MobileStatus.

Page 36: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 36 of 42

This results in timeouts when OCS MobileStatus establishes endpoints to use for publishing user presence

in Office Communications Server. To resolve the problem verify that the GRUU used is the correct one, and

that the application is provisioned within Active Directory.

Firewall configuration

The Office Communications Server cannot send data to OCS MobileStatus if the firewall on the computer

running OCS MobileStatus is not configured to allow traffic to the TCP port set with the OCSApplicationPort

(default 45871) configuration parameter.

This results in timeouts when OCS MobileStatus establishes endpoints to use for publishing user presence

in Office Communications Server. To resolve the problem allow communications to the port configured

with the OCSApplicationPort parameter.

Lync or Skype for Business provisioning If the necessary deployment PowerShell cmdlets regarding application pool, trusted application, etc. have

not been executed you may receive this log message when starting OCS MobileStatus:

Invalid configuration. Provisioning information is missing in CS environment. Microsoft.Rtc.Collaboration.ProvisioningFailureException:One or more values in the configured settings are invalid or unusable. Check inner exception and logs for more details. ---> Microsoft.Rtc.Internal.ServerConfiguration.SettingsInitializationException: The settings wrapper failed to initialize. A machine with FQDN {0} does not exist in the topology.

To solve the problem make sure to run all deployment cmdlets. In this case run Enable-CSReplica and

Invoke-CsManagementStoreReplication and wait for replication to complete.

If no certificate has been configured you may receive this log message:

Invalid configuration. Provisioning information is missing in CS environment. Microsoft.Rtc.Collaboration.ProvisioningFailureException:Application has not been configured with a certificate for Mutual TLS communication from this machine.

Run the PowerShell cmdlets for requesting and assigning a certificate. See the chapter Request a certificate

on page 22 for details.

Page 37: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 37 of 42

Appendix A: OCS MobileStatus settings

If you should require central management of the OCS MobileStatus configuration settings, you can change

all settings in the Windows Registry. The path in which the settings are stored is: HKEY_LOCAL_MACHINE\Software\BluePosition\OCS MobileStatus

The values are as described in the table below.

Setting name Type Default

value

Required Notes

CCSServer String None Yes Hostname or IP of BluePosition

MobileStatus or Call Center server.

ADImportRootPath String None No LDAP path to an organizational unit

which contains the users to

automatically set OCS status for. If not

configured, uses all users from the

entire Active Directory.

ADImportPrependCountryCode String None No The country code to prepend to the

numbers imported from the AD. Only

used if the numbers do not start with +

or 00.

ADImportInterval DWORD 1440 No The interval in minutes for automatic

import from Active Directory. Value

can be one of:

0 (meaning only on startup), 60, 120,

240, 720, 1440

LocalHostName String None Yes Hostname of the computer running

the OCS Mobile Status application.

Must be in a form which can be

resolved by the OCS server.

OCSGRUU String None Yes GRUU (Globally Routable User-agent

URI. Created when provisioning the

application on the OCS server in the

chapter Error! Reference source not

found. on page Error! Bookmark not

defined..

OCSServer String None Yes DNS name of the OCS, Lync, or Skype

for Business server or pool to

Page 38: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 38 of 42

communicate with. Only used by Lync

or Skype for Business if autodiscovery

is disabled.

OCSServerTLSPort Integer 5061 Yes The port on which the OCS server

listens for incoming TLS connections.

OCSApplicationPort Integer 45871 Yes Port used by OCS Mobile Status for

incoming communication from the

OCS server. Must be the same as

configured while creating the GRUU in

the Configuration program.

OCSBusyValue Integer 6500 Yes The availability value used when

setting a user’s status to ‘Mobile

phone busy’. For the best user

experience, the value should near or

equal to 6500 as the Office

Communicator client treats those

values as “busy”.

OCSMobileBusyString String Mobile

phone

busy

Yes The custom activity string used when

setting a user’s status to ‘Mobile

phone busy’.

OCSOffValue Integer 3500 Yes The availability value used when

setting a user’s status to ‘Mobile

phone off’. For the best user

experience, the value should be less

than 6500 which Office Communicator

treats as “busy”.

OCSMobileOffString String Mobile

phone

off

Yes The custom activity string used when

setting a user’s status to ‘Mobile

phone off’.

CertificateSerialNumber String None No If configured it must be the

hexadecimal serial number of the

certificate to use for TLS

communication with the OCS server.4

4 A note on certificate selection: If CertificateSerialNumber is configured, only a certificate with that serial number is used. If it is not configured, the Local Machine certificate store is searched for a certificate which has the value of the LocalHostName configuration setting as either the Subject Name or the Subject Alternate Name.

Page 39: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 39 of 42

SMTPAlerting String True No ‘True’ or ‘False’ to define whether

SMTP alerting is enabled

SMTPFrom String Yes The From address when OCS

MobileStatus sends an e-mail alert

SMTPPassword String No The password used when sending e-

mail alerts. Only used if a username is

also configured.

SMTPPort DWORD 25 No The port number to connect to the

SMTP server on.

SMTPServer String Yes The SMTP server to use when OCS

MobileStatus sends an e-mail alert.

SMTPRecipients String Yes A semi-colon separated list of SMTP

addresses who should receive e-mail

alerts.

SMTPUsername String No The username to use when sending e-

mail alerts when the server requires

login. If configured, a login will be

attempted on the server.

SMTPUseSSL String No ‘True’ or ‘False’ depending on whether

the SMTP server requires SSL/TLS

encryption.

LogConfiguration String No Set by the installer to make OCS

MobileStatus log to a file in the

program installation folder.

InstallPath String Yes Set by the installer to contain the

installation directory. Do not change

this value.

RuntimeInformation String Yes Contains runtime state information

which is used by OCS MobileStatus

when the service is restarted.

UseWorkingHours String False No ‘True’ or ‘False’ depending on whether

the working hours privacy setting

should be used.

Page 40: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 40 of 42

Working Hours Begin 0-7 String No HH:MM:SS (hour, minute, second) of

working hours begin time for each

weekday. Weekdays start with Sunday

at ‘Working Hours Begin 0’.

Working Hours End 0-7 String No HH:MM:SS (hour, minute, second) of

working hours end time for each

weekday. Weekdays start with Sunday

at ‘Working Hours End 0’.

PublishWhileOffline String True No ‘True’ or ‘False’ depending on whether

presence should be published when a

user is offline.

Page 41: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 41 of 42

Appendix B: Log configuration

By default OCS MobileStatus will log to a text file in the installation folder. The log file will rotate once when

it reaches a size of 100 MB. This means that no more than 200 MB of log files will be stored.

The log file is useful for product support in case of problems, but during normal operation it is not

necessary to analyze the log file.

The log file size and format as well as rotation can be configured. Since this is an advanced trouble-shooting

step, there is no configuration for the log file options. However, it is possible to change the settings using

the Windows Registry Editor.

The logging configuration is read by OCS MobileStatus from the value called LogConfiguration in the

registry key is HKEY_LOCAL_MACHINE\Software\BluePosition\OCS MobileStatus.

The default setting is:

The table below specifies the possible parameter options, their default values and descriptions.

Option Default Value Description

append true Specifies if new log messages should be appended to the log file

instead of overwriting the file first.

buffer 0 Specifies the I/O buffer size in kilobytes. It is possible to specify size

units like this: "1 MB". Supported units are "KB", "MB" and "GB". A

value of 0 disables this feature. Enabling the I/O buffering greatly

improves the logging performance but has the disadvantage that log

messages are temporarily stored in memory and are not immediately

written to disk.

filename ocsmobilestatus.log Specifies the filename of the log file.

indent false Indicates if the logging output should automatically be indented.

maxparts 2 Specifies the maximum amount of log files at any given time when log

rotating is enabled or the maxsize option is set. Specify 0 for no limit.

See below for information on the default value for this option.

maxsize 102400 Specifies the maximum size of a log file in kilobytes. When this size is

reached, a backup of the log file is created and the original file is

reset. It is possible to specify size units like this: "1 MB". Supported

text(append="true", filename="ocsmobilestatus.log", maxparts="2", maxsize="102400")

Page 42: OCS MobileStatus Installation and Configuration Guidetelenor.blueposition.com/files/OCS MobileStatus/OCS MobileStatus... · OCS MobileStatus Installation and Configuration Guide Document

OCS MobileStatus Installation and Configuration Guide

Document version 2.6, 2015-06-15 Page 42 of 42

units are "KB", "MB" and "GB". A value of 0 disables this feature.

rotate None Specifies the rotate mode for log files. Please see below for a list of

available values. A value of "none" disables this feature.

The append option specifies if new log messages should be appended to the destination file instead of

overwriting the file. The default value of this option is "true".

The rotate option specifies the date log rotate mode. When this option is used, the filename of the

resulting log consists of the value of the filename option and an appended time stamp (the used time

stamp format thereby is "yyyy-MM-dd-HH-mm-ss"). To avoid problems with daylight saving time or time

zone changes, the time stamp is always in UTC (Coordinated Universal Time). The following table lists the

available rotate modes together with a short description.

Rotate Mode Description

None Rotating is disabled

Hourly Rotate hourly

Daily Rotate daily

Weekly Rotate weekly

Monthly Rotate monthly