Forum Discussion
Dialing by Extension
- Dec 08, 2023How many people are you talking about having extensions and numbers different than their DID?
You could create a number normalization rule that normalizes 4 digits to the full phone number, you'd just end up with 1 rule for each person that has a different DID/extension.
New-CsVoiceNormalizationRule -Name BobsExt -Description "Bob's Extension to DID" -Pattern '^1122$' -Translation '+15555555555;ext=1122'
New-CsVoiceNormalizationRule -Name SarahsExt -Description "Sarah's Extension to DID" -Pattern '^2211$' -Translation '+15555554242;ext=2211'
If you put the numbers in a spreadsheet/csv it wouldn't be hard to use some PowerShell to loop through the list and then push it into Teams.
Another option, though not sure if it's available yet, is Teams Private Numbers. Assign a static phone number with the extension as a private number, then your normalization rule is simplified:
New-CsVoiceNormalizationRule -Name ExtensionMatch -Description "Extension Normalization" -Pattern '^(\d{4})$' -Translation '+15555555555;ext=$1'
mmartin1935 Hey, for internal calls that don't through an auto-attendant, you could look at setting Normalization rules to use the last digits of a person's number as their 'extension' - assuming everyone has the same range of phone numbers.
This article has a good explanation of how to set it up - Use Extension Dialing in Microsoft Teams (ucstatus.com)
I noticed in the normalization rules, when you choose advanced. You have the ability to use a REGEX. I'm guessing there's no way to somehow use a REGEX to match the "ext=xxxx" portion of the TelephoneNumber attribute?
So if that's not possible. Is the ONLY way you can direct dial an extension is if you can somehow match that to a portion of the user's full DID telephone number? Otherwise, it needs to be an Auto-Attendant?
Thanks Again,
Matt
- janglissDec 08, 2023Steel ContributorHow many people are you talking about having extensions and numbers different than their DID?
You could create a number normalization rule that normalizes 4 digits to the full phone number, you'd just end up with 1 rule for each person that has a different DID/extension.
New-CsVoiceNormalizationRule -Name BobsExt -Description "Bob's Extension to DID" -Pattern '^1122$' -Translation '+15555555555;ext=1122'
New-CsVoiceNormalizationRule -Name SarahsExt -Description "Sarah's Extension to DID" -Pattern '^2211$' -Translation '+15555554242;ext=2211'
If you put the numbers in a spreadsheet/csv it wouldn't be hard to use some PowerShell to loop through the list and then push it into Teams.
Another option, though not sure if it's available yet, is Teams Private Numbers. Assign a static phone number with the extension as a private number, then your normalization rule is simplified:
New-CsVoiceNormalizationRule -Name ExtensionMatch -Description "Extension Normalization" -Pattern '^(\d{4})$' -Translation '+15555555555;ext=$1'- mmartin1935Dec 08, 2023Copper ContributorThanks for the reply!
Yea, this could probably be the most feasible option since I am able to script it out with Powershell.
Do we know if there's a limit on total number of Normalization Rules?
Could there be any drawbacks to having 150 or so Normalization Rules?
Thanks Again,
Matt- AnonymousDec 09, 2023
Hello mmartin1935
Microsoft now enforces the rule that there can be no more than 50 normalization rules in a given dial plan.
Reference article: https://learn.microsoft.com/en-us/microsoftteams/what-are-dial-plans#:~:text=Microsoft%20now%20enforces%20the%20rule,in%20a%20given%20dial%20plan.If I have answered your question, please mark your post as Solved
If you like my response, please give it a Like

Appreciate your Kudos! Proud to contribute! 🙂
- HelloBenTeohDec 07, 2023Bronze Contributor
mmartin1935 that's a challenge. Is it possible to work with the higher ups to set up speed dial options instead? Are they still using handsets?
- mmartin1935Dec 08, 2023Copper ContributorHey Ben, thanks again for the reply. Yes, they are using handsets (*desk phones). Yea, Speed dials could be an option... I think some of the push back to keep extensions is because of common area phones in our warehouse, and they just want to pick up the handset and dial a extension that they know to reach a specific workstation.