Introduction
This guide is intended for customers who are looking to utilise the feature of routing calls to unassigned numbers in Microsoft Teams through the Teams Admin Center (TAC).
Up to date information from Microsoft regarding this feature can be found here: https://learn.microsoft.com/en-us/microsoftteams/routing-calls-to-unassigned-numbers
Routing rules for unassigned numbers
Create and manage rules to specify how to route unassigned phone numbers. Calls to unassigned numbers are matched against routing rules using match patterns in the evaluation order you specify. When a match is found, the call will be routed based on the matched rule.
Creating Rules
- Navigate to the Teams Admin Center (TAC) https://admin.teams.microsoft.com/dashboard
- Choose “Phone Numbers” from the left-hand menu under “Voice”
- Choose the “Routing rules” tab to add a new rule
- Press “Add” to add a new rule
- A side bar will open where you can fill in the information and choose the rule type you require.
- These rule selections will change how numbers are chosen
- Advanced Setup - You can enter a regular expression to match the numbers for this rule
- Number starting or ending with
- Phone number range – You can enter a range of numbers in full E164 format to match for this rule
- Single number – You can enter one single number in full E164 format to match for this rule
- Advanced Setup - You can enter a regular expression to match the numbers for this rule
- Once you have chosen your “condition match” then you will need to choose the destination
- These routing options will change what happens when a user calls a number matching the rules above.
- Greeting – Upload a pre-recorded file that will play then disconnect the call
- Person in organization – Search for a voice enabled user in the organization
- Voice Application – Search for a Resource Account assigned to Voice Application
- Greeting – Upload a pre-recorded file that will play then disconnect the call
- Press “Save” at the bottom of the sidebar
Testing your Rules
You can test the rules that you have created in the Teams Admin Center as well.
- Navigate to the Teams Admin Center (TAC) https://admin.teams.microsoft.com/dashboard
- Choose “Phone Numbers” from the left-hand menu under “Voice”
- Choose the “Routing rules” tab
- Choose “Test Number”
- Enter the number you would like to test in full E164 format and press “Test”
- If a test is complete, you will receive the below message with the rule name it was matched too
Using unassigned rules to block outbound numbers tenant wide.
Microsoft have stated on their documentation page that “There are no other checks of the numbers in the range. If the range contains a valid external phone number, outbound calls from Microsoft Teams to that phone number will be routed according to the treatment.”.
This means number ranges can be blocked tenant wide and will be picked up by the rules even if they are not in Microsoft Teams for user assignment.
For example, if you would like to create a rule to block all outbound calls to premium rate numbers in Spain this can be done by creating a rule as such: