A Unified Communication Blog
Get Adobe Flash player

In my series of using Lync and Exchange better together, I’m showing how to integrate these two great products with each other.

 

Use Voicemail in Office 365

In part 2 we were setting up Lync to use voicemail in Exchange 2013 and that works great, but when I wrote that post, I realized that not all companies have an on premises Exchange but instead are using Exchange in Office 365.

So in this post we will have a look on how to integrate an onpremises Lync Server 2013 with Exchange Online, and place the voicemail in there.

 

First of all, I will only focus on the Exchange and Lync part in this post, so you should before you start, you must have an Office 365 Tenant up and running with Dirsync and everything for this guide to work.

We will in this guide, use the simplest configuration, but you could also use a Session Border Controller to secure the communication from Office 365 to the Lync onpremises environment – but that will be another guide J

 

Office 365 Configuration

Start by login to the Exchange Administration Console in Office 365, and navigate to Unified Messaging.

It should be quite empty like below

Click on + to create a new dial plan

Type a name, choose number of extensions, and the language that the dialplan that should be used.

Click on Save.

Double click on the new dialplan

Click on Configure

Navigate to Outlook Voice Access and type an access number for the voicemail (so your users can call it from there mobile phones etc.)

You can adjust the other settings if you want, but for now save the settings.

Double click on the “Dialplan-DK Default Policy”

Adjust the Pin Policies if you want, and save the settings.

Note: The pin policy in Exchange don’t have anything to do with the pin policy you have in Lync, and you can use for accessing meetings.

Under UM Auto Attendants click +

Give the auto attendant a name and a dial in number and then save.

Double click on the new auto attendant

Change the settings so that it fits you, like language etc. and save it when finished.

Click on Close

We have for now setup the Exchange part.

 

Lync Configuration

To setup Lync to support voicemail in Exchange Online, we will use powershell.

First, you need to enable federation

Set-CsAccessEdgeConfiguration -AllowFederatedUsers $True

And create a new hosting provider which points to Exchange Online

New-CsHostingProvider -Identity “Exchange Online” -Enabled $True -EnabledSharedAddressSpace $True -HostsOCSUsers $False -ProxyFqdn “exap.um.outlook.com” -IsLocal $False -VerificationLevel UseSourceVerification

And a new voicemail policy which points to the Office 365 Tenant name (organization parameter)

New-CsHostedVoicemailPolicy -Identity “Office 365 Voicemail Policy” -Destination exap.um.outlook.com -Description “Hosted voicemail policy for Exchangepro domain.” -Organization “ExchangeproDK.onmicrosoft.com”

Next we need two ExUmContact objects for the Subscriber access and Auto attendant

New-CsExUmContact -SipAddress “sip:exumaa1@exchangepro.dk” -RegistrarPool “FEPOOL01.exchangepro.local” -OU “CN=Users,DC=Exchangepro,DC=local” -DisplayNumber “+4512345679″ -AutoAttendant $True

New-CsExUmContact -SipAddress “sip:exumsa1@exchangepro.dk” -RegistrarPool “FEPOOL01.exchangepro.local” -OU “CN=Users,DC=Exchangepro,DC=local ” -DisplayNumber “+4512345678″

And finally we need to assign the new voicemail policy to the two ExUmContacts

Grant-CsHostedVoiceMailPolicy –Identity sip:exumsa1@exchangepro.dk -PolicyName ‘Office 365 Voicemail Policy’

Grant-CsHostedVoiceMailPolicy –Identity sip:exumaa1@exchangepro.dk -PolicyName ‘Office 365 Voicemail Policy’

 

That’s it for the Lync configuration.

 

Assign Exchange Online Voice mail to the Lync Users

When the voicemail is hosted on an onpremises Exchange server, you only need to assign the UM policy from Exchange an then Lync knows about it, but when the voicemail is hosted in Exchange Online, you need to tell Lync that the user has a voicemail in Exchange Online.

This is done, though powershell with these cmdlets:

Grant-CsHostedVoicemailPolicy ‘sip:Joachim@exchangepro.dk’ -PolicyName ‘Office 365 Voicemail Policy’

Set-CsUser -Identity sip:Joachim@exchangepro.dk -HostedVoiceMail $True

 

In Exchange Administration Center in Exchange Online you need to enable the Exchange UM for the recipient

Select the Dialplan Policy

Type an extension for the user (DirSync should have synchronized the sip name to Office 365, before it’s filled out automatically)

Click Finish

 

You could also assign the voicemail policy by powershell with these cmdlets:

First login to Exchange Online, and get the exchange online cmdlets

Set-ExecutionPolicy RemoteSigned

$LiveCred = Get-Credential

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection

Import-PSSession -Session $s

And assign the dialplan policy to the user:

Enable-UMmailbox Joachim@exchangepro.dk -UMMailboxPolicy ‘Dialplan.DK Default Policy’ -Extensions 1001 -PIN 643894 -PINExpired $true

 

That is it, the user now has a voicemail assigned, and after a re-login to the Lync client you can access it in the normal Lync ways.

 

Until next time

 

/Joachim

 

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>

Search

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

Join 71 other subscribers

Follow me on Twitter