Enable users for Direct Routing, voice, and voicemail

This article describes how to enable users for Phone System Direct Routing. This is step 2 of the following steps for configuring Direct Routing:

For information on all the steps required for setting up Direct Routing, see Configure Direct Routing.

When you are ready to enable users for Direct Routing, follow these steps:

  1. Create a user in Microsoft 365 or Office 365 and assign a Phone System license.
  2. Ensure that the user is homed in Skype for Business Online.
  3. Configure the phone number and enable enterprise voice and voicemail.
  4. Assign Teams Only mode to users.

Create a user and assign the license

There are two options for creating a new user in Microsoft 365 or Office 365. However, Microsoft recommends that your organization choose one option to avoid routing issues:

If your Skype for Business Online deployment coexists with Skype for Business 2015 or Lync 2010 or 2013 on-premises, the only supported option is to create the user in the on-premises Active Directory and sync the user to the cloud (Option 1).

For information about license requirements, see licensing and other requirements in Plan Direct Routing.

Ensure that the user is homed online and phone number is not being synced from on-premises (applicable for Skype for Business Server Enterprise Voice enabled users being migrated to Teams Direct Routing)

Direct Routing requires the user to be homed online. You can check by looking at the RegistrarPool parameter, which needs to have a value in the infra.lync.com domain. OnPremLineUriManuallySet parameter should also to be set to True. This is achieved by configuring the phone number and enable enterprise voice and voicemail using Skype for Business Online PowerShell.

  1. Connect a Skype for Business Online PowerShell session.

  2. Issue the command:

    Get-CsOnlineUser -Identity "<User name>" | fl RegistrarPool,OnPremLineUriManuallySet,OnPremLineUri,LineUri
    

    In case OnPremLineUriManuallySet is set to False and LineUri is populated with a <E.164 phone number>, please clean the parameters using on-premises Skype for Business Management Shell, before configuring the phone number using Skype for Business Online PowerShell.

  3. From Skype for Business Management Shell issue the command:

    Set-CsUser -Identity "<User name>" -LineUri $null -EnterpriseVoiceEnabled $False -HostedVoiceMail $False
    

    After the changes have synced to Office 365 the expected output of Get-CsOnlineUser -Identity "<User name>" | fl RegistrarPool,OnPremLineUriManuallySet,OnPremLineUri,LineUri would be:

    RegistrarPool                        : pool.infra.lync.com
    OnPremLineURIManuallySet             : True
    OnPremLineURI                        : 
    LineURI                              : 
    

Configure the phone number and enable enterprise voice and voicemail

After you have created the user and assigned a license, the next step is to configure the user's phone number and voicemail.

To add the phone number and enable for voicemail:

  1. Connect a Skype for Business Online PowerShell session.

  2. Issue the command:

    Set-CsUser -Identity "<User name>" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:<E.164 phone number>
    

    For example, to add a phone number for user "Spencer Low," enter the following:

    Set-CsUser -Identity "spencer.low@contoso.com" -OnPremLineURI tel:+14255388797 -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
    

    The phone number used has to be configured as a full E.164 phone number with country code.

    Note

    If the user’s phone number is managed on premises, use on-premises Skype for Business Management Shell or Control Panel to configure the user's phone number.

Configuring sending calls directly to voicemail

Direct Routing allows you to end the call to a user and send it directly to the user's voicemail. If you want to send the call directly to voicemail, attach opaque=app:voicemail to the Request URI header. For example, "sip:user@yourdomain.com;opaque=app:voicemail". In this case, the Teams user will not receive the calling notification, the call will be connected to the voicemail of the user directly.

Assign Teams Only mode to users to ensure calls land in Microsoft Teams

Direct Routing requires that users be in Teams Only mode to ensure incoming calls land in the Teams client. To put users in Teams Only mode, assign them the "UpgradeToTeams" instance of TeamsUpgradePolicy. For more information, see Upgrade guidance for IT administrators. If your organization uses Skype for Business Server or Skype for Business Online, see the following article for information about interoperability between Skype and Teams: Migration and interoperability with Skype for Business.

See also

Plan Direct Routing

Configure Direct Routing