Versions Compared

Key

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









Anchor
_gsbejtt3u5w5
_gsbejtt3u5w5

Microsoft Teams Implementation Guide





Anchor
_Toc111810194
_Toc111810194

...

Anchor
_Toc111810199
_Toc111810199

Microsoft 365 Tenant Requirements

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

Anchor
_Toc111810200
_Toc111810200

Licensing Requirements

Direct Routing users must be assigned the following licenses in their Office 365 tenant:

...

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.

...

Anchor
_Toc111810204
_Toc111810204

...

1. Connect the SBC with Phone System and validate connection

Using the Microsoft Teams admin center
Add a Peeredge SBC to Direct Routing by clicking Add under the SBC tab in the Direct Routing page under Voice in the Microsoft Teams Admin Center:


The SBC FQDN entered in the Add an FQDN for the SBC field must exactly match the SBC Certificate's Common Name (CN) or be included in the Subject Alternative Name (SAN).
We recommend using 5061 as the SIP signaling port and enabling the Send SIP options, Forward call history, and Ring phone while trying to find the user. Other settings may need to be enabled based on your specific business requirements. If you plan to enable location based routing or Bypass mode, we recommend that you fully test the SBC integration with these features disabled first.
Note: the TLS connectivity status will be Inactive and the SIP Options status will be Warning until the Peeredge SBC Origination Customer SIP Trunk Group is configured. If you are anxious to see the status of these columns change to Active, you can jump ahead and complete Steps 1 and Step 3 in the Peeredge SBC configuration section.
Using Windows PowerShell
To add a new Direct Routing SBC, use the New-CsOnlinePSTNGateway command. If you forget a mandatory parameter, the cmdlet will prompt you to provide it as in this example.

To view the configuration of the existing SBCs, use the Get-CsOnlinePSTNGateway command.

To change the configuration of an existing SBC, use the Set-CsOnlinePSTNGateway command.

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


...


  • 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, from the Phone number type drop-down menu, select Direct Routing.

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

  6. Select Apply.

...

Anchor
_Toc111810207
_Toc111810207
Step 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.

Example Call routing policy names:
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.

Example PSTN usage names:
US-Emergency
US-LD
US-INTL
Company-Internal

  • Voice routes – A number pattern and set of online PSTN gateways to use 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.
Example Voice route names and their associated dialed number pattern:
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 - A pointer to the Peeredge SBC that also stores the configuration that is applied when a call is placed through the SBC, such as forward P-Asserted-Identity (PAI) or Preferred Codecs; 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 will create 4 PSTN usage records. Use easy to understand names representing 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

  3. Click + Add and type in the name for the PSTN usage record

  4. Repeat step 3 for any other records

  5. Click the Apply button when finished

...

In the following example we will create 4 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. The Priority should be 1

  6. The Dialed number pattern should be ^933$

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

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

  9. Click the Save button.

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

...

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

  4. Add an appropriate description

  5. Add one or more PSTN usages

  6. Click the Save button.

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

...

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

...

A dial plan is a named set of normalization rules that translate dialed phone numbers by an individual user into an alternate format (typically E.164) for purposes of call authorization and voice routing.
A dial plan consists of one or more normalization rules that define how phone numbers expressed in various formats are translated to an alternate format. The same dial string may be interpreted and translated differently in different dial plans, so depending on which dial plan is assigned to a given user, the same dialed number may be translated and routed differently.
The example below will show 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 you 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 were often configured with 8 or 9 as an external dialing prefix to route the call to in 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 the Save button.

  15. Repeat steps 7 – 14 for any additional Normalization rules.

  16. Click the Save button.

...


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. If the Relationships menu is collapsed, click on Relationships from the Tree View in the left panel to view All existing Relationships. If it is expanded, click on All immediately under Relationships

  2. Select the Customer Relationship you created in Step 1

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

  4. Select the + Add Group button in the upper right window

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

  6. Select Termination from the drop-down selector in the Direction field

  7. Select Customer from the drop-down selector 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.

...