Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Modified


Image Modified




Anchor
_gsbejtt3u5w5
_gsbejtt3u5w5

Microsoft Teams Implementation Guide





Anchor
_Toc111810194
_Toc111810194

Overview


This implementation guide describes how service providers can configure an interconnection between the Microsoft Phone System Direct Routing Interface and 46 LABS' Peeredge Session Border Controllers (SBCs). Microsoft documentation describes many configuration requirements specific to the Microsoft Teams environment. This implementation guide includes references to that documentation where appropriate.

...

Version

Description of Changes

Date Revised

1.0

Initial version

8/24/2022







Anchor
_c2liv2mquvj0
_c2liv2mquvj0
Anchor
_n2j6qplrbca2
_n2j6qplrbca2
Anchor
_Toc111810196
_Toc111810196

Table of Contents

Page Tree
root@self
spacespeeredge
startDepth1
searchBoxtrue

...

Info

Note Additional information on the Microsoft 365 site can be found here.

Anchor
_Toc111810198
_Toc111810198

Prerequisites

Before starting the implementation, make sure you have access to an active instance of the Peeredge SBC. The 46 LABS team can deploy the Peeredge SBC to the client's preferred environment (i.e. 46 LABS data center, on-premise, or in a third-party data center) after the client purchases a Peeredge SBC license.

Anchor
_Toc111810199
_Toc111810199

...

Direct Routing requires a custom domain for each Office 365 tenant. For more information, click here.

Anchor
_Toc111810200
_Toc111810200

...

  • For more information about Microsoft licensing requirements, click here.

Anchor
_Toc111810201
_Toc111810201

Domain Name Server (DNS) Requirements

...

  • Public IP Address

  • Fully Qualified Domain Name (FQDN)

  • Public DNS entry

Anchor
_Toc111810202
_Toc111810202

SBC Domain Names

The domain names for SBCs must be in the list of domain names registered in the "Domains" section under Settings of the Microsoft 365 admin center menu. The domain of a tenant must be activated and have a Healthy status. Go to the admin dashboard to add domains that are not already created and verified.

...

  • Table note The IPs and domain names in this document are used as examples.

Anchor
_Toc111810203
_Toc111810203

Public Trusted Certificate for the Peeredge SBC

...

Anchor
_Toc111810204
_Toc111810204

Configuring Microsoft 365 Tenant for Direct Routing

...

Info

Note The Microsoft Teams PowerShell Module is not supported by PowerShell Core.

Anchor
_Toc111810205
_Toc111810205

1. Connect the SBC with Phone System and validate connection

Using the Microsoft Teams admin center

To add the Peeredge SBC to Direct Routing:

...

  • To delete an existing SBC, use the Remove-CsOnlinePSTNGateway command.

...

Anchor
_Toc111810206
_Toc111810206

2. Enable users for Direct Routing, voice, and voicemail

...


Must be configured for Teams Only mode

...

Must be homed online, enabled for enterprise voice, and assigned a phone number

Using the Microsoft Teams admin center:

  1. Go to Users -> Manage users.

  2. Select a user.

  3. Under Account General information, select Edit.

  4. Under Assign phone number, click the Phone number type drop-down menu and select Direct Routing.

  5. Enter an assigned phone number and a phone number extension if applicable.

  6. Click Apply.

...

After Phone Number Assignment

...

Anchor
_Toc111810207
_Toc111810207

3. Configure call routing

Call routing is made up of the following elements:

Call routing policy

Also called a Voice Routing policy. A container for PSTN usages, which can be assigned to a user or to multiple users. Sample Call routing policy names include:

  • US Only

  • US Global

  • Germany Only

  • Germany Global

  • Internal

PSTN usages

A container for voice routes and PSTN usages, which can be shared in different voice routing policies. Sample PSTN usage names include:

  • US-Emergency

  • US-LD

  • US-INTL

  • Company-Internal

Voice routes

A number pattern and set of online PSTN gateways for calls where the calling number matches the pattern. In the examples below, the Internal voice routes represent routes to company-managed third-party PBXs used by employees that have not yet migrated to MS Teams. Sample Voice route names and their associated dialed number patterninclude:

  • US Emergency ^933$

  • US LD e164 ^+1[2-9]\d{2}[2-9]\d{6}$

  • US INTL e164 ^+[2-9]\d+$

  • Reston Internal ^+170355512\d{2}$

  • Chicago Internal ^+13125556[43]\d{2}$

Online PSTN gateway

This is a pointer to the Peeredge SBC that also stores the configuration which is applied when a call is placed through the SBC, such as forward P-Asserted-Identity (PAI) or Preferred Codecs. The pointer can be added to voice routes.

Two examples (from Microsoft) of voice routing policies in a call flow.

Anchor
_Toc111810208
_Toc111810208

Create the PTSN usages

In the following example, we create four PSTN usage records. We suggest admins use easy-to-understand names representing the types of calls a user is allowed to dial. Using the Microsoft Teams admin center:

  1. Go to Voice -> Direct Routing.

  2. Select Manage PSTN usage records in the top right corner of the page.

  3. Click + Add and enter the name of the PSTN usage record.

  4. Repeat step 3 to add more records.

  5. Click Apply to finish.

...


Use the Get-CSOnlinePSTNUsage command to view the PSTN Usages.

...

Anchor
_Toc111810209
_Toc111810209

Create the voice routes

In the following example, we create four voice routes. The dial number patterns are in the form of a regular expression (regex). You can validate your regex patterns.
Using the Microsoft Teams admin center:

  1. Go to Voice -> Direct Routing.

  2. Click the Voice routes button.

  3. Click the Add button.

  4. Add the name Non-Emergency Test in the voice route in the Add a name for your voice route field.

  5. Make sure the Priority is 1.

  6. Make sure the Dialed number pattern is ^933$.

  7. Click the Add SBCs button and select your Peeredge SBCs and then click Apply.

  8. Click the ADD PSTN usage button and select the US-Emergency PSTN Usage and then click Apply.

  9. Click Save.

  10. Repeat steps 3 – 9 for any other voice routes using an appropriate priority and PSTN Usage. When overlapping dialed number patterns exist, give the more specific pattern higher priority.

...


To view the existing voice routes, use the Get-CsOnlineVoiceRoute command.

...

Anchor
_Toc111810210
_Toc111810210

Create the voice routing policy

Using the Microsoft Teams admin center:

  1. Go to Voice -> Voice routing policies.

  2. Click the + Add button.

  3. Add the policy name in the Add a name for your voice routing policy field.

  4. Add an appropriate description.

  5. Add one or more PSTN usages.

  6. Click Save.

  7. Repeat steps 2 – 6 for each voice routing policy.

...


To view a list of existing voice routing policies, use the Get-CsOnlineVoiceRoutingPolicy command.

...

Anchor
_Toc111810211
_Toc111810211

Assign the voice routing policy to a user

Using the Microsoft Teams admin center:

  1. Go to Voice -> Voice routing policies.

  2. Highlight the voice policy you want to assign.

  3. Click the Assign button.

  4. In the Manage user search box, search for the user and click add when found.

  5. Click Apply.

...

  • Remove-CsOnlineVoiceRoutingPolicy -Identity "User's UPN or SIP Address" -PolicyName "policy name"

Anchor
_Toc111810212
_Toc111810212

4. Translate number to an alternate format

...

These policies are applied at the SBC level. You can assign multiple translation rules to an SBC, which are applied in the order they appear in your PowerShell list. You can also change the order of the rules in the policy. There is no specific requirement to configure Number Translation Rules to interoperate with the Peeredge SBC. Consult Microsoft online documentation if your business requires the use of Number Translation Rules.

Anchor
_Toc111810213
_Toc111810213

5. Add a dial plan and assign to a user

...

The example below shows how to add a typical US dial plan.

Using the Microsoft Teams admin center:

  1. Go to Voice -> Dial plans.

  2. Click the +Add button to add a Tenant dial plan.

  3. Add the dial plan name (US DP) in the Add a name for your dial plan field.

  4. Add an appropriate description (Tenant User Dial plan for US-based users).

  5. Add an External dialing prefix (8). Legacy PBX was often configured with 8 or 9 as an external dialing prefix to route the call to an external line.

  6. Set Optimized device dialing to ON if you configured an External dialing prefix.

  7. Click the Add button under Normalization rules to open the Add new rule pane.

  8. Enter a rule name (Non-Emergency Test Call) in the Name field.

  9. Add an appropriate description.

  10. Select an appropriate Rule creation mode (Advanced).

  11. Enter a dial pattern to match (^(911)$) in the If condition.

  12. Enter the translation/number manipulation ($1) in the Then do this field.

  13. Optionally, enter a number in the test this rule field to validate the rule. A validated test results in, "The translated number is an E.164 phone number."

  14. Click Save.

  15. Repeat steps 7 – 14 to add Normalization rules.

  16. Click Save.

...


To view a User's Effective (the service-scoped and the tenant-scoped) Dial plan, use the Get-CsEffectiveTenantDialPlan command.


Info

Note The US service-scoped dial plan includes a translation of 988 to the national US Suicide Provention Hotline +18002738255.

...

Anchor
_Toc111810214
_Toc111810214

Peeredge SBC Terminology

A Relationship is a top-level container used to group related items. Related items include Trunk Groups, Capacity Groups, Rate decks, Route plans, Balances, Invoices, Agents, Triggers, and E911-related configurations. There is typically one Relationship for each Customer and one Relationship for each Vendor.

...

The Microsoft SIP Proxy FQDNs and IP addresses used SIP signaling (and related firewall information) with Microsoft Teams Direct Routing are defined in this section of the Microsoft documentation.

  1. Go to the Tree View in the left panel and click Relationships if the menu is collapsed. If the Tree View is expanded, click on All.

  2. Select the Customer Relationship you created in Step 1.

  3. Select the Trunk Groups menu (next to the Relationship Info menu).

  4. Click the + Add Group button in the top right window.

  5. Enter an appropriate name for the Trunk Group in the Name field. For example, From Teams.

  6. Select Termination on the drop-down menu in the Direction field.

  7. Select Customer on the drop-down menu in the Relationship field.

  8. Set the Max PDD to 10 seconds or another appropriate value.

  9. Set the STIR/SHAKEN Treatment to No Treatment.

  10. Verify the ANI Normalization and Normalize sipcodes attributes are enabled.

  11. Click the Create button.

...