SOLVED
Home

Number to Username Translation, Is it possible?

%3CLINGO-SUB%20id%3D%22lingo-sub-891039%22%20slang%3D%22en-US%22%3ENumber%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891039%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Epardon%20me%20for%20the%20stupid%20question.%20Been%20tinkering%20with%20how%20I%20can%20work%20with%20extension%20dialing%20in%20msteams%2C%20and%20found%20out%20I%20can%20utilize%20tenant%20dialplan%20to%20tranlsate%203-4%20digits%20to%20DID.%20The%20problem%20is%2C%20not%20all%20users%20in%20a%20tenant%20will%20be%20assigned%20DID.%20So%20that's%20why%20I%20wonder%20if%20there%20is%20a%20way%20to%20do%20translation%20from%20number%20to%20username.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20there%20isn't%2C%20what%20is%20the%20best%20approach%20to%20solve%20the%20aforementioned%20problem%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20and%20have%20a%20very%20great%20day.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-891039%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20%26amp%3B%20Tricks%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETranslation%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894060%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894060%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3Ethere%20is%20no%20number%20to%20username%20translation.%20Users%20get%20a%20number%20with%20phone%20system%20to%20be%20reachable%20from%20the%20PSTN%20(calling%20plan%20and%20direct%20routing).%20If%20your%20users%20try%20to%20reach%20each%20other%20internally%20they%20should%20use%20the%20search%20or%20contact%20list%20to%20reach%20them.%20This%20would%20initiate%20a%20conversation%20based%20on%20the%20username%20(UPN).%3CBR%20%2F%3EA%20concept%20when%20multiple%20users%20share%20the%20same%20number%20externally%20and%20have%20an%20own%20internal%20extension%20is%20not%20available%20in%20Teams.%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%3CBR%20%2F%3E%3CBR%20%2F%3EPaul%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-894787%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-894787%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F44596%22%20target%3D%22_blank%22%3E%40Paul%20Lange%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20replying.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20are%20absolutely%20right.%20The%20question%20arose%20because%20I%20am%20trying%20to%20integrate%20legacy%20pbx%20system%20with%20msteams%20phone%20system%20direct%20routing.%20It%20is%20not%20a%20matter%20of%20technical%20but%20merely%20because%20of%20old%20habits%20die%20hard%20from%20the%20seniors.%20I%20am%20wondering%20if%20there%20is%20a%20way%20to%20workaround%20or%20if%20there%20is%20best%20approach%20for%20the%20extensions%20calling%20between%20the%20systems%20before%20convincing%20them%20to%20purchase%20more%20DIDs.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-895183%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-895183%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F372492%22%20target%3D%22_blank%22%3E%40godril%3C%2FA%3E%26nbsp%3BI've%20just%20performed%20a%20little%20science%20experiment.%20I%20ran%20the%20following%20PowerShell%20command%20for%20a%20user%20in%20our%20tenant%20which%20does%20not%20have%20a%20PSTN%20assigned%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ESet-CsUser%20-Identity%20userwithnopstn%40example.com%20-OnPremLineURI%20tel%3A1234%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EI%20then%20dialed%20%221234%22%20from%20Teams%20and%20the%20call%20was%20successfully%20routed%20to%20the%20user.%20So%20yes%2C%20it%20does%20seem%20it%20should%20be%20possible.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-895536%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-895536%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F44596%22%20target%3D%22_blank%22%3E%40Paul%20Lange%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20for%20replying%20on%20the%20weekend.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20actually%20only%20do%20direct%20routing%20for%20the%20users%20besides%20integrating%20the%20legacy%20PBX.%20I%20think%20this%20idea%20is%20the%20same%20path%20with%20what%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80266%22%20target%3D%22_blank%22%3E%40Ryan%20Steele%3C%2FA%3E%26nbsp%3Bmentioned.%20Will%20surely%20try%20this%20too.%20Thank%20you%20thank%20you%20thank%20you.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-895523%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-895523%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80266%22%20target%3D%22_blank%22%3E%40Ryan%20Steele%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20on%20earth%20didnt%20I%20think%20of%20this%20before!%3F%26nbsp%3B%20So%20basically%20it%20can%20accept%20any%20type%20of%20numbers%2C%20and%20not%20just%20E164%20and%20I%20dont%20have%20to%20enable%20EnterpriseVoice%3F%20Must%20try%20this%20first%20thing%20in%20Monday%20morning.%20Thank%20you%20very%20much.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20a%20very%20nice%20weekend.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-895414%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-895414%22%20slang%3D%22en-US%22%3E%3CP%3EOk.%20Understood.%3CBR%20%2F%3EIf%20I%20understand%20you%20correctly%20you%20are%20using%20Calling%20Plan%20and%20Direct%20Routing%20at%20the%20same%20time.%20Do%20you%20plan%20to%20have%20Direct%20Routing%20for%20users%20or%20just%20to%20integrate%20the%20PBX%20users%3F%3CBR%20%2F%3EWhat%20you%20can%20test%20is%20that%20you%20build%20a%20dialplan%20with%20normalization%20rules%20that%20normalize%20the%20extension%20range%20of%20the%20PBX%20to%20e.164%20and%20Route%20it%20via%20the%20SBC%20to%20your%20PBX.%20To%20my%20knowledge%2C%20this%20should%20also%20work%20for%20users%20having%20a%20calling%20plan.%26nbsp%3B%3CBR%20%2F%3EThe%20other%20way%20around%20(PBX%20User%20-%26gt%3B%20Calling%20Plan%20User)%20would%20then%20also%20be%20routed%20via%20the%20SBC.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEdit%3A%3C%2FP%3E%3CP%3EThe%20attached%20picture%20shows%20nearly%20what%20you%20are%20trying%20to%20accomplish.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-895772%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-895772%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F372492%22%20target%3D%22_blank%22%3E%40godril%3C%2FA%3E%26nbsp%3BI%20believe%20the%20account%20does%20need%20to%20be%20licensed%20for%20Phone%20System%20and%20have%20Enterprise%20Voice%20enabled.%20I%20will%20also%20mention%20that%20we%20are%20using%20Calling%20Plans%20exclusively%20and%20haven't%20implemented%20Direct%20Routing%2C%20so%20I'm%20not%20sure%20whether%20that%20would%20make%20any%20difference%20for%20your%20scenario.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-900173%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-900173%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80266%22%20target%3D%22_blank%22%3E%40Ryan%20Steele%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20assign%20such%20extension%20to%20an%20account%2C%20and%20make%20sure%20the%20dialed%20number%20would%20not%20be%20sent%20to%20sbc%20by%20adding%20Normalization%20with%20option%26nbsp%3B-IsInternalExtension%20%24true%20.%26nbsp%3B%20But%20somehow%20it%20still%20went%20out%20to%20sbc.%20I%20think%20it%20is%20caused%20by%20the%20CsOnlineVoiceRoute%20which%20the%20pattern%20is%20set%20to%26nbsp%3B%20%3CSTRONG%3E.*%3C%2FSTRONG%3E%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20try%20to%20find%20the%20best%20time%20to%20mess%20with%20the%20Phone%20System%20config%20later.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-920267%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20to%20Username%20Translation%2C%20Is%20it%20possible%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-920267%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80266%22%20target%3D%22_blank%22%3E%40Ryan%20Steele%3C%2FA%3E%20%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ejust%20want%20to%20update%20with%20the%20tinkering.%20In%20the%20Direct%20Routing%20I%20have%20to%20Set-CsUser%20with%20OnpremlineURI%20tel%3A%20%2B1001%20.%20It%20needs%20to%20be%20E164%20formatted.%20From%20there%20on%20I%20just%20have%20to%20create%20Tenant%20Normalization%20rule%20and%20set%20IsInternalExtension%20to%20%24false%20(at%20first%20my%20pbx%20mindset%20automatically%20make%20%24true%20and%20it%20didnt%20work).%20And%20then%20adding%20some%20rule%20in%20the%20SBC%20for%20intercall%20with%20other%20PBX%20as%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F44596%22%20target%3D%22_blank%22%3E%40Paul%20Lange%3C%2FA%3E%26nbsp%3B%26nbsp%3Bsuggested.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20thanks%20again%20for%20the%20clue.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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. 

 

9 Replies
Highlighted
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
Highlighted

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. 

Highlighted
Solution

@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. 

Highlighted

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. 

Highlighted

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.  

Highlighted

Hi @Paul Lange 

 

thank you for replying on the weekend. 

 

I actually only do direct routing for the users besides integrating the legacy PBX. I think this idea is the same path with what @Ryan Steele mentioned. Will surely try this too. Thank you thank you thank you.  

Highlighted

@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.

Highlighted

@Ryan Steele 

 

I tried assign such extension to an account, and make sure the dialed number would not be sent to sbc by adding Normalization with option -IsInternalExtension $true .  But somehow it still went out to sbc. I think it is caused by the CsOnlineVoiceRoute which the pattern is set to  .*   

 

I will try to find the best time to mess with the Phone System config later. 

Highlighted

Hi @Ryan Steele

 

just want to update with the tinkering. In the Direct Routing I have to Set-CsUser with OnpremlineURI tel: +1001 . It needs to be E164 formatted. From there on I just have to create Tenant Normalization rule and set IsInternalExtension to $false (at first my pbx mindset automatically make $true and it didnt work). And then adding some rule in the SBC for intercall with other PBX as @Paul Lange  suggested. 

 

So thanks again for the clue.  

Related Conversations
TEAMS autocorrection
EkaPelevina in Microsoft Teams on
1 Replies
mehrere Sprachen in TEAMS Einladung
Mark346121095 in Microsoft Teams on
0 Replies
Uploading Files
SamSae122045 in Microsoft Teams on
0 Replies