A Unified Communication Blog
Get Adobe Flash player

In my new series we started by looking at integrating Lync and Exchange so that we could use Chat and Presence in Outlook Web Access and get a more rich experience when these great products is used together.

Setup Voicemail

In this post we will have a look at the Voicemail capabilities in Exchange Unified Messaging and how to set it up.

I will be using Exchange 2013 and Lync 2013, but the process for using Exchange 2010 is almost the same.

As you might know, in Exchange 2013 the Unified Messaging role is installed on all servers as default whereas in Exchange 2010 it was a role you need to install, either separate or together with some of the other roles.

Exchange Configuration

Before we start the configuration, you might need to install an Language pack so Exchange will talk to you in the language you prefer. Get the UM language packs here:


(You can more than one UM Language pack on the servers if you want.)

Lets start by configuring the Exchange server.

Login to Exchange Administration center as an Administrator.

My Unified Messaging Configuration is empty.

Click on + to add a new configuration.

Name the Dialplan, set the number of numbers in extension, set the type to SIP URI and the VoIP Security mode to Secured.

And lastly the country code.

Then Click on Save.

Double Click on the new dialplan

The new dialplan looks like this:

Click on Configure

Here you will have the possibility to change the properties for the users voice mail

Navigate to Outlook Voice Access

Type a number under Outlook Voice Access Numbers, which can be used by the users to access there voicemail.

Look at the other properties you can change, and when you are happy with the configuration click on Save.

Next double click on the “Dialplan-US Default Policy”

The Policy is what we will later on assign to the users.

Here you will be able to change the possibilities the users of this policy will have:

When you are happy with the configuration click on Save.

If you want to have an Auto Attandant, where external users can get transferred to user in your organization you can configure and auto attendant by clicking on the +

Give it a Name and a phone number and click save.

Double click on the new auto attendant

Here you will have the possibility to change language and set other properties.

Click Save when you are happy with the configuration.

We are now finished configure our new voicemail and auto attendant, so click on close.

Navigate to Servers and double on your exchange server, and set the settings as below.

Note: Your setup might be different if you have a dedicated mailbox server and dedicated client access server.

The Call Router Settings is running on the Client Access Server, and the UM Service Settings is running on the mailbox server.

In my setup I have both mailbox and CAS on the same server, so that is way the above picture looks like it dos.

Click Save when you have configured it.

Click OK to the Warning.

Next we need to tell Exchange about how to connect to Lync, so login to the Exchange server and open Exchange Management Shell and navigate to the exchange script folder and run ExchUCutil.ps1

The script reads from active directory and configure the Exchange UM IP gateways which are the frontend servers in a Lync deployment.

Next we need to assign a certificate to the UM Service which is done this way:



And copy the Thumbprint for the local server name

The other certificates will not work with the UM service, which require a certificate which has the FQDN name of the server.

Next Type

(On CAS Server)

Enable-ExchangeCertificate -Thumbprint FDFE0A404E4EAC1EBA84AD5AD2B5DE7527412E25 -Services UMCallRouter

(On Mailbox Server)

Enable-ExchangeCertificate -Thumbprint FDFE0A404E4EAC1EBA84AD5AD2B5DE7527412E25 -Services UM

Click Yes to the warnings

Remember to do this on both the mailbox and client access server if they are separate servers

Next we need to restart the UM Service with these commands:

On Client Access Server

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeumcr’} | % {$_.stopservice()}

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeumcr’} | % {$_.startservice()}

On Mailbox Server

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeum’} | % {$_.stopservice()}

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeum’} | % {$_.startservice()}

(Run all four commands if mailbox and client access is on the same server).

If you want to make everything in powershell, then here are the commands:

New-UMDialplan -Name “Dialplan-US” -UriType SIPName -NumberofDigits 4 -CountryOrRegionCode 45

Set-UMdialplan -Identity “Dialplan-US” -DialByNamePrimary FirstLast -AudioCodec Mp3 -DefaultLanguage en-US -AccessTelephoneNumbers +4510000001 -MaxRecordingDuration 60 -MaxCallDuration 120 -VoIPSecurity Secured

New-UMAutoAttendant -Name “US Auto Attendant” -UMDialPlan Dialplan-US -PilotIdentifierList +4510000002 -SpeechEnabled $true

Set-UMAutoAttendant -Identity “US Auto Attendant” -Language en-US

Enable-UMAutoAttendant -Identity “US Auto Attendant”

On CAS Server:

Enable-ExchangeCertificate -Thumbprint FDFE0A404E4EAC1EBA84AD5AD2B5DE7527412E25 -Services UM

Set-UmCallRouterSettings -UMStartupMode dual -DialPlans “Dialplan-US” -Server exch15.exchangepro.local -IPAddressFamily IPv4Only

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeumcr’} | % {$_.stopservice()}

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeumcr’} | % {$_.startservice()}

On Mailbox Server:

Set-UmService -UMStartupMode dual -DialPlans “Dialplan-US” -identity exch15.exchangepro.local

Enable-ExchangeCertificate -Thumbprint FDFE0A404E4EAC1EBA84AD5AD2B5DE7527412E25 -Services UM

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeum’} | % {$_.stopservice()}

gwmi win32_service -comp exch15.exchangepro.local | where {$_.name -eq ‘msexchangeum’} | % {$_.startservice()}

We have now configured Exchange, and will continue with the Lync configuration.

Configure Lync

We also need to tell Lync about the voice mail, and configure Contact obejcts which the users can find in the address book.

Login to the frontend Server and navigate to this folder

Open OcsUmUtil.exe

Click Load Data

Click on Add

Select an OU for the Contact object, give the it a name, select the Frontend pool, and finally select Subscriber Access

The Click on OK

Click Add Again

First Select Auto Attendant, then give it a name and you might also need to correct the sip address so that it doesn’t contain spaces.

Click OK when finished

Close the Program

Restart the Lync frontend services for it to take effect



Now we have configured Lync, so lets assign a voicemail to the users.

Enable Users for Voicemail

We need a users which has an Exchange mailbox and is enabled for Enterprise Voice in Lync

Next in Exchange Administration Center find the user, and click on enable Unified messaging in the right side.

Click Browse

Select the Dialplan Policy and click next

Type a four digit extension and click finish

The User has now been enabled for UM, and will receive an email in Outlook with information about the new voicemail and how to access it.

The users can either dial the above numbers or use Lync to call voicemail and personalize it.

The user also has the possibility to click on “Set Up Voice Mail” and configure rules for how voicemail is routed in Exchange

We have now configured Exchange and Lync and given the users access to have a voicemail in Exchange.

Next time we will have a look at how to setup the voicemail with Office 365 and on premises Lync.


Use Lync and Exchange Better together

Other posts in the series:

OWA Integration: http://exchangepro.dk/2014/01/19/use-lync-and-exchange-better-together-part-1/

Voicemail: http://exchangepro.dk/2014/01/24/use-lync-and-exchange-better-together-part-2/

Voicemail in Office 365: http://exchangepro.dk/2014/01/28/use-lync-and-exchange-better-together-part-3/

Unified Contact Store: http://exchangepro.dk/2014/02/11/use-lync-and-exchange-better-together-part-4/


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 77 other subscribers

Follow me on Twitter