Integrate Lync 2013 with Exchange 2013 Step-by-Step Part-1

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
  • 1

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
  • 2

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

  1. UM Call Router: responsible      to route the call to the correct Lync Front End server
  2. UM Service : this what we      used to call Unified Messaging server in exchange 2010.

So first the UM call router:

  • Set-UMCallRouterSettings      -Dialplans <name of the dialplan you created> -UMStartupMode TLS
  • 3

Now the UM service:

  • Get-UMService | Set-UMService      -DialPlans <name of dialplan you created> -UMStartupMode TLS
  • 4

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

  1. 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

5

  • Press enter , then enter      again
  • Restart the services
  • Restart-service      msExchangeUMCR
  • Restart-service msExchangeUM

7

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.

  • cd “c:\Program      Files\Microsoft\Exchange Server\V15\scripts”
  • .\Exchucutil.ps1
  • image701
    image701

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”
image731
image731
  • Press Load data
  • Select the correct Forest from the drop down menu
  • Click the “Add” button
image786
image786
  • 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
image210
image210

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”

image531
image531

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.

Integrate Lync 2013 with Exchange 2013 step-by-step part-2

Author: Lyncdude

A Senior Microsoft Unified Communications Consultant with more than 9 years of experience in Microsoft Exchange and Microsoft Lync Server / Skype for Business. Egyptian guy lives and works in Frankfurt - Germany. Worked Closely with Microsoft Dubai for 3 years designing , building and supporting Exchange and Lync Infrastructures. A Microsoft Certified ITP in Lync, Exchange and also attended Microsoft Partner Primer Filed Support Engineer T1 Training for Microsoft Lync 2010.

6 thoughts on “Integrate Lync 2013 with Exchange 2013 Step-by-Step Part-1”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s