Configuring Call Restrictions and Routing

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 12 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Configuring Call Restrictions and Routing in Microsoft Teams Phone

Introduction: The Architecture of Call Control

In the modern enterprise environment, Microsoft Teams Phone has evolved from a simple chat and meeting tool into a full-fledged cloud-based telephony system. However, providing employees with the ability to place and receive public switched telephone network (PSTN) calls is only half the battle. The true challenge for administrators lies in governance, cost management, and security. Configuring call restrictions and routing is the mechanism by which you ensure that your organization’s telephony system remains compliant, cost-effective, and aligned with business requirements.

When we talk about call restrictions and routing, we are essentially defining the "rules of the road" for every voice packet that leaves your organization. Without these controls, you risk massive toll fraud, unauthorized international calling, and a fragmented user experience where employees cannot reach the destinations they need for their roles. By mastering these configurations, you transition from a passive administrator to an active architect of your organization's communication infrastructure. This lesson will guide you through the technical components, the logic behind routing decisions, and the best practices for maintaining a secure and functional Teams Phone environment.

Not read yet

Understanding the Core Components of Routing

To manage call restrictions and routing effectively, you must first understand the three pillars of the Teams telephony stack: Voice Routing Policies, Dial Plans, and Caller ID Policies. These three elements work in concert to determine where a call goes, how it is formatted, and how it is presented to the recipient.

Voice Routing Policies

A Voice Routing Policy (VRP) is the primary engine that determines which PSTN gateways or Session Border Controllers (SBCs) a user can access. When a user dials a number, the Teams service looks at their assigned VRP to see which "Voice Routes" are available. A Voice Route consists of a regex (regular expression) pattern that matches the dialed number and a list of gateways that are authorized to process that call.

Dial Plans

Dial Plans are the translation layer of your telephony system. They take the digits a user types—such as a short internal extension or a local number—and normalize them into the E.164 international format (e.g., +12125550100). Without a properly configured Dial Plan, the Teams service would not recognize the destination, and the call would fail before it even reached the routing stage.

Caller ID Policies

Caller ID policies dictate what information is displayed to the person receiving the call. This is crucial for branding and privacy. You might want your sales department to show the main corporate number, while your executive team displays their specific direct inward dialing (DID) number. These policies ensure that your outbound identity remains consistent and professional.

Callout: The Difference Between Routing and Dialing It is common to confuse Dial Plans with Voice Routing Policies. Think of a Dial Plan as a translator—it turns what the user typed into a language (E.164) the system understands. Think of a Voice Routing Policy as a travel agent—it decides which path or "carrier" the call should take once it has been translated into a valid number.

Not read yet

Implementing Dial Plans: The Foundation of Routing

Before a call can be restricted or routed, it must be valid. Dial Plans are the first step in this process. You can define global dial plans that apply to everyone, or service-country dial plans that handle specific regional needs.

Normalization Rules

Normalization rules use regular expressions to transform input. For example, if your users are accustomed to dialing "9" to get an outside line, you need a rule that strips the "9" and adds the necessary country code.

Step-by-Step: Creating a Normalization Rule in PowerShell

  1. Define the rule name and pattern.
  2. Specify the translation string.
  3. Apply the rule to a new or existing Dial Plan.
# Define the normalization rule
$rule = New-CsVoiceNormalizationRule -Name "Remove9Prefix" -Description "Strip 9 and add +1" -Pattern '^9(\d{10})$' -Translation '+1$1'

# Create the Dial Plan and attach the rule
New-CsTenantDialPlan -Identity "US_DialPlan" -NormalizationRules $rule

In this code, the pattern ^9(\d{10})$ looks for a number starting with 9 followed by 10 digits. The (\d{10}) captures those 10 digits, and the translation +1$1 takes that capture and prefixes it with the country code +1, effectively turning a "9-555-010-9999" dial into "+15550109999".

Note: Always test your normalization rules in a development tenant or with a small group of users before rolling them out globally. A single incorrect regex pattern can break dialing for an entire office.

Not read yet

Configuring Voice Routing Policies for Call Restrictions

Call restrictions are primarily managed through the Voice Routing Policy. By creating different policies for different user groups, you can restrict who is allowed to make international calls, who can only make domestic calls, and who has unrestricted access.

The Logic of Voice Routes

A Voice Route is defined by a "Number Pattern" and a "Gateway List." If you want to restrict international calling, you simply do not include a route that matches international number patterns in the policy assigned to your general staff.

Practical Example: Restricting International Access Imagine you have two groups: "Standard Staff" and "International Sales."

  1. Create a route for "LocalCalls" that matches domestic patterns.
  2. Create a route for "InternationalCalls" that matches international patterns (e.g., ^\+([1-9]\d{10,})$).
  3. Create a Voice Routing Policy "DomesticOnly" and add only the "LocalCalls" route.
  4. Create a Voice Routing Policy "InternationalEnabled" and add both routes.

By assigning the "DomesticOnly" policy to your staff, any attempt to dial an international number will result in a "Call Rejected" or "Invalid Number" error, because the system cannot find a matching route for that pattern.

Not read yet

Advanced Caller ID Management

Caller ID policies allow you to hide or replace a user's number with a service number. This is often used for help desks, where you want to ensure the customer sees the "General Support" number rather than the individual agent’s private line.

Configuring Blocked Caller ID

You can also configure policies to block the caller ID entirely for specific users. This is common for legal departments or investigators who need to perform outreach without revealing their identity.

Step-by-Step: Creating a Caller ID Policy

  1. Log into the Microsoft Teams Admin Center.
  2. Navigate to Voice > Caller ID policies.
  3. Click Add.
  4. Set the "Block incoming caller ID" or "Override the caller ID policy" settings as required.
  5. Assign the policy to the target users.

Callout: Caller ID and Legal Compliance Be aware of local regulations regarding "spoofing" or masking caller ID. In many jurisdictions, you are legally required to provide a valid, dialable number that identifies the caller, especially for emergency services or consumer protection compliance. Always consult your legal department before implementing widespread caller ID masking.

Not read yet

Best Practices for Call Routing Architecture

When designing your routing architecture, simplicity is your best friend. Complex, nested routing policies are difficult to troubleshoot and prone to configuration drift.

Keep Routing Policies Flat

Avoid creating a unique routing policy for every individual user. Instead, categorize your users into broad "Voice Profiles" (e.g., Remote Workers, Office Staff, International Sales, Executives). Assign policies based on these profiles to keep your administrative overhead low.

Document Your Regex Patterns

Regular expressions are powerful but notoriously difficult to read. Maintain a central document that lists every normalization rule and voice route pattern, along with the logic behind it. This ensures that when a new administrator joins the team, they can troubleshoot issues without having to reverse-engineer your entire routing table.

Use the "Least Cost Routing" Approach

If your organization has offices in multiple countries, use Voice Routing Policies to ensure that calls originate from the local gateway in that region. This is known as "Least Cost Routing." It avoids expensive long-distance charges by routing the call over the local PSTN network closest to the destination number.

Not read yet

Common Pitfalls and How to Avoid Them

Even experienced administrators fall into common traps when configuring Teams Phone. Recognizing these issues early can save you hours of downtime.

The "9-Dialing" Loop

A common mistake is creating a Dial Plan rule that conflicts with existing internal extensions. For example, if your internal extensions are 4 digits long and start with 9, and you create a normalization rule that strips a leading 9 for external calls, your users will never be able to dial internal extensions starting with 9.

  • Fix: Ensure your normalization rules are specific. Use patterns that clearly distinguish between internal and external numbers, or reserve specific number ranges for external dialing.

Over-Reliance on Global Policies

Relying solely on the "Global (Org-wide default)" policy is a recipe for disaster in large organizations. It makes it impossible to apply granular restrictions.

  • Fix: Use the Global policy as a baseline, but create specific custom policies for departments or regions that have unique telephony requirements.

Forgetting the "PSTN Usage" Link

In the Teams architecture, Voice Routing Policies are linked to Voice Routes via "PSTN Usages." If you create a route but forget to add the usage record to the policy, the route will simply not exist for that user.

  • Fix: Always follow the chain: Route -> PSTN Usage -> Voice Routing Policy -> User. Double-check that every step is linked.

Not read yet

Troubleshooting Routing Issues

When a user reports that they cannot make a call, the issue is almost always a mismatch in the routing chain. Follow this systematic approach to isolate the problem:

  1. Check the Dial Plan: Does the number the user dialed match any of the patterns in their assigned Dial Plan? If the number remains unchanged or is transformed into an invalid format, the Dial Plan is the culprit.
  2. Check the Voice Routing Policy: Once the number is in E.164 format, does the user's assigned policy contain a Voice Route that matches that number? If not, the call will fail.
  3. Check the Gateway/SBC: If the routing policy is correct, check the status of your SBC. Is it connected? Are there active sessions? Sometimes the SBC will reject the call due to authentication issues or lack of available channels.

Warning: Never modify production Voice Routing Policies during business hours. A misconfiguration here can take down the entire company's telephony system. Always perform changes during a maintenance window and verify them with a test account first.

Not read yet

Comparison Table: Routing Policy Features

Feature Global Policy Custom Policy Best Use Case
Flexibility Low High Standard vs. Special roles
Maintenance Minimal Moderate Large-scale management
Auditing Easy Complex Compliance tracking
Scalability High Low Enterprise-wide deployments

Integrating Emergency Routing (Dynamic E911)

While this lesson focuses on standard call routing, you cannot ignore Emergency Routing. In many regions, you are legally required to ensure that emergency calls (e.g., 911) are routed correctly, regardless of the user's location.

Emergency Call Routing Policies

Teams allows you to create specific Emergency Call Routing Policies. These policies ensure that even if a user is restricted from making standard external calls, they can still reach emergency services. Furthermore, you can configure these policies to alert internal security teams automatically when an emergency call is placed from a specific location.

Key Configuration Steps:

  1. Define your Emergency Locations in the Teams Admin Center.
  2. Assign Emergency Addresses to your SBCs or specific IP subnets.
  3. Configure the Emergency Call Routing Policy to prioritize local emergency services based on the detected location of the user.

Not read yet

Managing International Call Restrictions

Managing international costs is often a top priority for IT leadership. Restricting international calls can be done at the "Voice Route" level by simply omitting international patterns. However, you might find that you need to allow international calls for some users but not others.

Using Voice Routing Policy Assignment

The most efficient way to handle this is to create two policies: International_Allowed and International_Blocked.

  • International_Allowed includes routes for both local and international patterns.
  • International_Blocked includes only routes for local patterns.

By assigning these policies to users via PowerShell (using Grant-CsVoiceRoutingPolicy), you can quickly update permissions as users change roles or departments. This is far more efficient than trying to manage individual call permissions.

# Example: Assigning a policy to a user
Grant-CsVoiceRoutingPolicy -Identity "[email protected]" -PolicyName "International_Blocked"

Not read yet

The Role of SBCs in Routing

The Session Border Controller (SBC) acts as the bridge between your Teams environment and the PSTN. When you define a Voice Route, you are essentially telling Teams to send the call to a specific SBC.

Load Balancing and Failover

If you have multiple SBCs, you can add them to the same Voice Route. Teams will attempt to use the first SBC in the list. If that SBC is unavailable or returns an error, Teams will automatically try the next one in the list. This provides redundancy and ensures that your call routing remains resilient even during a hardware failure.

Note: When configuring multiple SBCs in a route, ensure that they are configured with identical routing logic. If one SBC expects a certain format and the other does not, users will experience inconsistent call quality and intermittent failures.

Best Practices for Documentation and Maintenance

Your routing configuration is a living entity. As your company grows, adds new offices, or changes carriers, your routing rules will need to evolve.

  1. Version Control: If you use PowerShell to manage your policies, store your scripts in a version control system like Git. This allows you to track changes, see who made them, and roll back if a configuration change causes issues.
  2. Periodic Audits: Every six months, review your Voice Routing Policies. Remove routes that are no longer used and verify that your normalization rules still match the numbering plans of your carriers.
  3. User Testing: Before a major change, invite a small group of "power users" to test the new routing. Ask them to dial local, long-distance, and international numbers to ensure the behavior matches your expectations.

Not read yet

Summary: Key Takeaways

Configuring call restrictions and routing is the foundation of a professional, secure, and cost-effective Teams Phone deployment. By mastering the interaction between Dial Plans, Voice Routing Policies, and Caller ID policies, you gain full control over how your organization communicates.

  • Dial Plans are Translators: They convert user-dialed numbers into the E.164 format necessary for the system to process the call.
  • Routing Policies are the Gatekeepers: They define which gateways are authorized to process calls and act as the primary mechanism for restricting international or premium-rate calling.
  • Categorize for Efficiency: Do not manage routing on a per-user basis. Use broad user profiles and assign policies to those groups to keep your configuration manageable and easy to audit.
  • Prioritize Security and Compliance: Always ensure that your routing policies comply with local laws, especially regarding Caller ID masking and emergency services access.
  • Test Before You Deploy: Use maintenance windows and test accounts to verify that your regex patterns and routing logic do not disrupt critical business communications.
  • Plan for Resilience: Utilize multiple SBCs within your Voice Routes to ensure that your telephony system remains available even if individual gateways fail.
  • Documentation is Mandatory: Because telephony configurations are often opaque, maintain clear, written records of your routing logic and normalization rules to facilitate troubleshooting and team growth.

By following these principles, you will ensure that your Teams Phone implementation is not just a collection of settings, but a well-oiled machine that supports the communication needs of your organization while keeping costs and risks firmly under control.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.