Howdy,
In this series of articles I will start a how to guide in integration of Microsoft Lync 2013 and Microsoft Exchange 2013 including integration with UM and OWA.
Integrate Lync 2013 with Exchange 2013 UM
First of all communication between Lync and Exchange will be via TLS so you need to make sure that you have certificate configured on your Exchange 2013 either by Public Authority or from your internal authority (Check my post on how to request certificate from CA)
I can start posting screenshots and explanation which will make the article longer , instead I decided to show how to do it via PowerShell command line.
Create Dial plan
Using the following PowerShell command line you can create a UM dial plan, you will need to prepare two DIDs (Phone numbers) that will be used one for auto-attendant and one for the voice access number.
- New-UMDialPlan -Name <name of dialplan> -Uritype SIPName -NumberofDigits <integer> -VoIPSecurity Secured -CountryOrRegionCode <your country code> -AccessTelephoneNumbers <Number to be used for voice access >
Explaining the command:
Name: is the name you want to give to your UM dial plan, can be anything
UriType: how exchange going to link phone number to the mailboxes, in case of Lync integration you will use value SIPName
NumberOfDigits: number of the digits of the phone number that is used to differentiate between users, is it by last 3 digits ,4 or whatever?
VoIPSecurity: as we said communication is done using TLS , so you must use value secured
CountryOrRegionCode: first two digits of your country code.
AccessTelephoneNumbers: the number that will be assigned to this services
So in my lab it will be like following, in my lab I use 4 digits extensions
- New-UMDialPlan -Name “LyncDude UMDialPlan” -Uritype SIPName -NumberofDigits 4 -VoIPSecurity Secured -CountryOrRegionCode 49 -AccessTelephoneNumbers +49123451000
Create Auto attendant
Using the following PowerShell command line, you can create an auto attendant , as mentioned before you will need a DID to be assigned to this services
- New-UMAutoAttendant -Name <Name of AA> -UMDialPlan <name of Dialplan> -PilotIdentifierList <Number to be used for AA> -SpeechEnabled $true -Status Enabled
Explaining the command:
Name: should be the name of the Auto-attendant that you are creating can be anything
UMDialPlan: the name of the dial plan that you created and want to assign this Auto-attendant to it.
PilotidentifierList: the DID that will be assigned to the auto-attendant
SpeechEnabled: if you want to make this auto-attendant speech enabled, so it can understand voice commands.
Status: enable or disable this auto-attended
An example of the one I will use in my LAB
- New-UMAutoAttendant -Name <Name of AA> -UMDialPlan <name of Dialplan> -PilotIdentifierList <Number to be used for AA> -SpeechEnabled $true -Status Enabled
Assign the DialPlan to the UM Components (What we used to call UM-Server)
Now we need to assign the Dial plan we created to two component that replaced the UM-Server role in Exchange 2010
- UM Call Router: responsible to route the call to the correct Lync Front End server
- UM Service : this what we used to call Unified Messaging server in exchange 2010.
So first the UM call router:
Now the UM service:
Assign Certificate to Exchange 2013 UM Service & Call router
Don’t try to restart the services as it won’t, because you still didn’t assign a certificate to the UM services, to do so you need the following PowerShell command
- Get the Exchange Certificate you have
- Get-ExchangeCertificate
- Select the correct certificate you requested for the UM services, and copy the Thumbprint
- Assign the Certificate to the UM services
- Enable-ExchangeCertificate -thumbprint <past the thumbprint here> -services UM, umcallrouter
- Press enter , then enter again
- Restart the services
- Restart-service msExchangeUMCR
- Restart-service msExchangeUM
Create UM IP gateway for Lync 2013
Final step on the Exchange Side is to run the ExchUCUtil.ps1 script on the Exchange server to do so using PowerShell, this will create UM IP-gateway for each Lync Front End exist in your infrastructer.
Configure the Integration on Lync Side
- On the Lync Front End side go to “C:\Program Files\common Files\Microsoft Lync Server 2013\support\”
- Double click “ocsUMUtil”

- Press Load data
- Select the correct Forest from the drop down menu
- Click the “Add” button

- Edit the Name and the SIP address if you want
- If you have multiple Lync Pools, make sure to select the correct one
- Press Ok

This create subscribe access, we will repeat the same for the auto-attendant, same steps as above except making sure that under
(Contact Type) you selecting “Auto-Attendant”

That’s it, Now Your Lync 2013 is integrated with Exchange 2013 UM, you can test it by enable a user for Unified messaging and call the voice mail from the Lync soft phone or desk phone.
Page 2 is missing. I get a 404 error.
has been fixed, thanks for pointing this out
Heads up. The link to the Exchange certs guide is on Lyncdude.net instead of .com which appears to be borked atm
Fixed link for anyone looking for it
http://lyncdude.com/2012/07/02/request-a-certificate-for-exchange-from-ca/
I need to renew this .net domain so the blog stop getting into this 404 🙂 so lazy to do it