Friday 23 March 2012

Office 365 Voicemail and Lync On-Prem Intergration

I have just completed an intergratrion for a client where they have Exchange Online (Office365) and Lync Server 2010 On-Prem and wanted voicemail. Microsoft makes this process very simple but some things always get missed when reading the Microsoft Papers on this stuff.

When configuring federation to Office365, you must have an Edge server/pool that is currently configured to federate.

On your edge server open Lync PowerShell and type:

Set-CsAccessEdgeConfiguration -UseDnsSrvRouting -AllowFederatedUsers 1 -EnablePartnerDiscovery 0

Then create a new hosting provider

New-CsHostingProvider -Identity Domain.com -Enabled $True -EnabledSharedAddressSpace $True -HostsOCSUsers $False -ProxyFQDN "edge.domain.com" -IsLocal $False -VerficationLevel UseSourceVerification
Next enable your Lync users

Set-CsUser -HostedVoiceMail $True -Identity "domain.local\username"
Next in your Office365 Admin Page open OWA:

  1. Select Manage My Organization > Phone & Voice > UM Dial Plans.
  2. Under UM Dial Plans, click New.
  3. Under Name, enter a name that is unique in your organization. It can be up to 49 characters long.
  4. Enter the following information for the dial plan:
    • Extension length   Enter the number of digits in the telephone extensions assigned to your users in Lync.
    • Dial plan URI type   Use  SIP URI type: name@domain.com
    • Audio language   Select the language to use for automated greetings, phone navigation prompts, Voice Mail Preview, and Outlook Voice Access.
      Note   Voice Mail Preview isn't available in all languages.
    • Country/Region code   Enter the numeric code for the country or region of this dial plan so that UM can dial domestic and international numbers correctly. For example, if your UM dial plan is in the United States, the code is 1. This field accepts 1 to 4 digits.
  5. Click Save to create the UM dial plan.
  6. Select the UM dial plan and click Details to configure dial codes, Outlook Voice Access, voice mail settings, and dialing rules.
Next back to Lync Powershell

Set-CsHostedVoiceMailPolicy -Destination exap.um.outlook.com -Organization domain.com

Next Create a Lync contact to represent the Exchange Online UM dial plan by using the Lync Server cmdlet New-CsExUMContact.

New-CsExUMContact -DisplayNumber +14255551234 -SipAddress sip:exumsa@domain.com -RegistrarPool edgepool.contoso.com -OU "OU=ExUmContacts,DC=domain,DC=local"

Next set the default voicemail policy to your newly created EX UM Contact

Grant-CsHostedVoiceMailPolicy -Identity exumsa@domain.com

Now test it, give Lync a few minutes to populate the voicemail to the user.

Let me know if you have any issues or questions, ill be glad to assist.

5 comments:

  1. In new-CsExUMContact where does the -DisplayNumber come from? Is it one of the local site's unused phone numbers or is it a number at office 365 UM?

    Thanks for the answer,
    Gerald

    ReplyDelete
  2. Hello Tim!
    First - thank you fr your blog - I found here several very useful tips. Second - do you have any idea how to forward properly from on-premise Lync unassigned number to appropriate UM mailbox voice mail within Office 365? It is working fine for Lync users, however not for unassigned numbers. Honestly I don't know how to forward the call using CsAnnouncement and CsUnassignedNumber 1 number "range". I can create some dummy Lync account for such numbers, however it is not correct as it needs the Lync license and I still think there must be some way how to do that clean.
    Thank you in advance
    Petr

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. If we could be able to produce something that is more important for the recipients mind and nature it would be so inspiring one for each other to regain their dealings, so it must needs to be sorted with some care and attention. professional voicemail greeting

    ReplyDelete
  5. Voice over Internet protocol service helps in transferring data voice and images through the same lines saving time and cost. automated voicemail greeting

    ReplyDelete