UCPrimer
  • Tech Blog
  • About UCPrimer.com

Provisioning Exchange Online for Lync Hybrid Part III

12/25/2014

9 Comments

 
Picture
In this final Part III of the Provisioning Exchange Online for Lync Hybrid series of blog posts, we will complete the Exchange Online integration with Lync Hybrid by enabling Hosted Voicemail for Lync users hosted on-premise. Readers who want to refer to the previous 2 blog posts can review them again here: Part I and Part II. Upon completing the steps in this post, Lync on-premise users will be able to access to their Exchange Voice Mails via Outlook Voice Access from Lync and also have the UM auto attendant available for searching and calling users in the directory. Note that this only works for Lync users hosted on-premise. Lync users hosted online cannot integrate with Exchange Online UM. This blog post is based on the steps provided in the TechNet documentation but as always, more detail steps and configuration information will be provided here to supplement it. Below is the diagram of the architecture for reference:
Picture
Enabling Exchange Online UM
To begin this walkthrough we first enable Exchange Online for UM, which is disabled by default. There are a few steps to getting this done which is documented in this TechNet article and won't be covered in detail in this blog except for some of the key points to note. When creating a new UM Dial Plan in the EAC, we need to select the "SIP URI" dial plan and also note that there's no option to change the VoIP Security Mode at this step. However, in Office365 the VoIP security setting of "SIP Secured" mode is required and can’t be disabled. We can verify this by starting an Exchange Online poweshell session to examine the newly created UM dial plan as shown below. We can see that the setting is set to "Secured":
Picture
Picture
After creating the UM dial plan, we need to add at least one Outlook Voice Access number for users to access their mailboxes search the directory. By default, when you create a UM dial plan, no Outlook Voice Access number is configured. Note that number of alphanumeric characters in the Outlook Voice Access number can't exceed 20. After we configure this number on the dial plan, the number will be displayed in the voice mail options in Microsoft Outlook, and in Outlook Web App:
Picture
At the UM Dial Plan page we can also create an auto attendant if desired. We can leave the auto-generated global UM Mailbox Policy settings as default for now. Unlike enabling Exchange UM for on-premise Exchange servers, we also do not need to create a UM IP Gateway for our Lync FE Pool nor do we need to run the ExchUCUtil.ps1 script.

However, we do need to enable users for UM and this can be done using the EAC under the user's mailbox settings. Note that the SIP address for the user is predefined already and we only need to enter the extension number which can simply be the user's extension in Lync:
Picture
Picture
Configuring Lync Hybrid for Exchange Hosted UM
By this stage our Edge server already has the correct AccessEdgeConfiguration settings if the steps in the "Road to Hybrid" article was done. Following that, in the previous Part 1 of this series we already configured the Lync Edge server for integration with Exchange Online. To recap, we created a new hosting provider for Exchange hosted UM. To verify this we can run the get-cshostingprovider cmdlet as shown below:
Picture
Next, a key component of making this work is the on-premise Lync hosted voice mail policy which provides information to the ExUM Routing application where to route calls for users whose mailboxes are located on a hosted Exchange service like Office365. This policy defines two parameters that the ExUM Routing application inserts in the request URI of an INVITE message that is sent to the hosted Exchange UM service. The "Destination" parameter specifies FQDN of the hosted Exchange UM service which is exap.um.outlook.com for Office365, and the "Organization" parameter provides the FQDN of the tenant on the hosted Exchange UM service that homes the users’ mailboxes, which in this case is the original tenant address "ucprimer.onmicrosoft.com", not the shared SIP address. Obviously we can set policies at the user and site level but in this walkthrough we will just use the global policy since all user mailboxes are hosted on O365.

In addition, we also need to set the user's msExchUCVoiceMailSettings attribute to enable Exchange UM by running the Lync Management Shell cmdlet: Set-CsUser -Identity <identity> –HostedVoicemail $true
Picture
In the final step, we create Exchange UM Contacts in Lync. Recall that we specified an Outlook Voice Access (Subscriber Access) number when creating the UM Dial Plan and also created an Auto Attendant with a number as well. To create the corresponding Lync contacts we use the New-CsExUmContact cmdlets as shown below:
Picture
Conclusion
Testing to make sure it works, we login to Lync for a user homed on premise and dial the SA and AA extensions 1001 and 1000 respectively. Both calls reach the Exchange Online UM service and we hear the usual greetings and prompts:
Picture
Picture
From Outlook we can also receive the VoiceMail message:
Picture
This concludes the 3 part series of the Provisioning Exchange Online for Lync Hybrid series.
9 Comments
Ahmed Mostafa
8/4/2015 07:57:47 pm

Hi,

I have deployed SFB 2015 and integrate it with exchange UM online. it takes up 8 seconds to hear the auto attendant welcome message. can this delay be minimized ?

Reply
Brennon link
8/13/2015 03:10:08 pm

Hi Ahmed

Is the SFB2015 user in the same location as the Exchange tenant? If not then the delay is to be expected since you can only pick one DC for your O365 tenant even though your users could be spread globally.

Reply
Ahmed Mostafa
8/17/2015 03:53:12 pm

Yes , my Datacenter located in MEA and i noticed that i routed to O365 Datacenter located in US. So, this is the cause of the delay in ringing my company landline number , even though i still hear the welcome message with no issue !

Aaron
8/14/2015 01:00:42 am

I'm also getting a delay on the AutoAttendant with Exchange Online/Lync on-premises.

Though i have another client with the same setup and they experience no delay at all.

anyone have an answer for this?

Reply
Ahmed Mostafa
8/17/2015 03:31:50 pm

Aaron,

what is the difference between the two setups ?

aaron
11/9/2015 09:53:16 am

no diference between the setups.

Aaron
11/9/2015 01:05:59 pm

I just resolved the same issue this afternoon.
For me, the delay only happens when a custom greeting file is uploaded to the 365 AA. The file was in the correct format but i decided to run it through an online conversation too.
I used http://online-convert.com.

converted it to a wav file using these settings......
Change Bit Resolution=16 bit
Change Sampling rate = 8000Hz
Change Audio Channels = mono
Normalize Audio = Checked

once i uploaded the new file the 8 second delay was gone.
Hope this helps anyone else experiencing the issue.

Reply
Brennon link
8/30/2015 06:28:41 pm

Basically, when you sign up for the tenant, the location (eg. NA) you specify in the organization will determine which data centre is hosting your tenant and this does not change. When you create accounts located in another location (eg. APAC), they are still using the data centre in the original NA location. Exchange UM is hosted in the NA data centre hence users in APAC can expect some delay when calling the Exchange AA or SA

Reply
aaron
11/9/2015 09:52:14 am

I've been getting this same delay for the last three months. But it is not consistent between deployments. some identical deployments do not experience the 9 second delay.

any insight into this?

Reply

Your comment will be posted after it is approved.


Leave a Reply.

    Picture
    Picture

    Important Links

    Microsoft Teams Docs
    Microsoft Learn

    ​Microsoft MVP Blogs

    Michael Tressler’s Blog
    Michael’s MTR Quick Tip Videos
    Jimmy Vaughan’s Blog
    Jeff Schertz
    Adam Jacobs
    James Cussen
    ​Damien Margaritis

    Archives

    September 2022
    August 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    June 2021
    April 2021
    March 2021
    December 2020
    October 2020
    September 2020
    August 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    March 2019
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    August 2017
    July 2017
    April 2017
    March 2017
    February 2017
    January 2017
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    January 2016
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    September 2012
    August 2012

    Categories

    All
    Edge
    Exchange 2013
    Hybrid
    Lpe
    Lync 2010
    Lync 2013
    Mobility
    Oauth
    Office365
    Polycom
    Ucs

    RSS Feed

    This website uses marketing and tracking technologies. Opting out of this will opt you out of all cookies, except for those needed to run the website. Note that some products may not work as well without tracking cookies.

    Opt Out of Cookies