Share via

Teams Direct Routing User Setup

Troy Rainey 1 Reputation point
Jun 13, 2022, 6:33 PM

Hello All,

Our Company is currently in the Process of setting up Direct Routing with Teams. I am going to setup the users with PowerShell and am getting the following error. It only appears to happen with users with the same primary number but different extensions it does not occur with users having there own DID.

210909-teamsdirectrouting.png

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,744 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,515 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,610 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,206 Reputation points Microsoft Vendor
    Jun 14, 2022, 3:15 AM

    Hi @Troy Rainey ,

    As mentioned in this article, to assign numbers by using PowerShell in Microsoft Teams, please use the Set-CsPhoneNumberAssignment cmdlet instead. For the situation you described, you can run the commend below after replacing the identity and phone numbers:

    Set-CsPhoneNumberAssignment -Identity "user1@contoso.com" -PhoneNumber "+123456789;ext=1002" -PhoneNumberType DirectRouting  
    

    More details, hopefully you can find the document below helpful:
    Enable users for Direct Routing


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Limitless Technology 39,791 Reputation points
    Jun 15, 2022, 7:50 AM

    Hi there,

    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.

    If you're managing the user's phone number on-premises, you need to ensure that the user is Enterprise Voice enabled online by using the following command: Set-CsPhoneNumberAssignment -Identity "<User name>" -EnterpriseVoiceEnabled $true

    You can learn more about the process from here https://learn.microsoft.com/en-us/microsoftteams/direct-routing-enable-users

    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.