Forum Discussion

godril's avatar
godril
Copper Contributor
Oct 03, 2019
Solved

Number to Username Translation, Is it possible?

Hello, 

 

pardon me for the stupid question. Been tinkering with how I can work with extension dialing in msteams, and found out I can utilize tenant dialplan to tranlsate 3-4 digits to DID. The problem is, not all users in a tenant will be assigned DID. So that's why I wonder if there is a way to do translation from number to username. 

 

If there isn't, what is the best approach to solve the aforementioned problem? 

 

Thank you in advance and have a very great day. 

 

  • godril I've just performed a little science experiment. I ran the following PowerShell command for a user in our tenant which does not have a PSTN assigned:

    Set-CsUser -Identity userwithnopstn@example.com -OnPremLineURI tel:1234

    I then dialed "1234" from Teams and the call was successfully routed to the user. So yes, it does seem it should be possible. 

9 Replies

  • Ryan Steele's avatar
    Ryan Steele
    Bronze Contributor

    godril I've just performed a little science experiment. I ran the following PowerShell command for a user in our tenant which does not have a PSTN assigned:

    Set-CsUser -Identity userwithnopstn@example.com -OnPremLineURI tel:1234

    I then dialed "1234" from Teams and the call was successfully routed to the user. So yes, it does seem it should be possible. 

    • godril's avatar
      godril
      Copper Contributor

      Hi Ryan Steele

       

      Why on earth didnt I think of this before!?  So basically it can accept any type of numbers, and not just E164 and I dont have to enable EnterpriseVoice? Must try this first thing in Monday morning. Thank you very much.

       

      Have a very nice weekend.  

      • Ryan Steele's avatar
        Ryan Steele
        Bronze Contributor

        godril I believe the account does need to be licensed for Phone System and have Enterprise Voice enabled. I will also mention that we are using Calling Plans exclusively and haven't implemented Direct Routing, so I'm not sure whether that would make any difference for your scenario.

  • paul-lange's avatar
    paul-lange
    Iron Contributor
    Hi,

    there is no number to username translation. Users get a number with phone system to be reachable from the PSTN (calling plan and direct routing). If your users try to reach each other internally they should use the search or contact list to reach them. This would initiate a conversation based on the username (UPN).
    A concept when multiple users share the same number externally and have an own internal extension is not available in Teams.

    Regards,

    Paul
    • godril's avatar
      godril
      Copper Contributor

      Hi paul-lange 

       

      Thank you for replying. 

       

      You are absolutely right. The question arose because I am trying to integrate legacy pbx system with msteams phone system direct routing. It is not a matter of technical but merely because of old habits die hard from the seniors. I am wondering if there is a way to workaround or if there is best approach for the extensions calling between the systems before convincing them to purchase more DIDs. 

      • paul-lange's avatar
        paul-lange
        Iron Contributor

        Ok. Understood.
        If I understand you correctly you are using Calling Plan and Direct Routing at the same time. Do you plan to have Direct Routing for users or just to integrate the PBX users?
        What you can test is that you build a dialplan with normalization rules that normalize the extension range of the PBX to e.164 and Route it via the SBC to your PBX. To my knowledge, this should also work for users having a calling plan. 
        The other way around (PBX User -> Calling Plan User) would then also be routed via the SBC.

         

        Edit:

        The attached picture shows nearly what you are trying to accomplish. 

Resources