You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »


In This Article


Overview


IMPORTANT:  The configuration steps in this article assume that your Teams users configured for direct routing will have all of their calls routed from Office 365 to the Evolve IP voice infrastructure.  This includes extension dialing and feature access code dialing (#NN, *NN).

If your environment includes voice routing to other 3rd party vendors, or you are using Microsoft's dial plans, this configuration will not affect those situations, and you will have the flexibility to assign a Teams user to any of those configurations.

For example, one group of Teams users can be assigned a phone number and dial plan provided by Microsoft, and another group assigned a phone number and configured for direct routing to Evolve IP's voice infrastructure.


In the US, Evolve IP has two primary datacenters for its voice infrastructure.  One in Las Vegas for users located in the west, and one in Philadelphia for users located in the east.  When configuring your voice routes in Office 365, you will want to make one of the two locations a primary route and the other a secondary route.  For example:

  • Users located on the east coast would use the Philadelphia (east) voice infrastructure for their primary route, and the Las Vegas (west) voice infrastructure for their secondary route.
  • Users located on the west coast would use the Las Vegas (west) voice infrastructure for their primary route, and the Philadelphia (east) voice infrastructure for their secondary route.
  • For users located in the middle of the US, you will need to choose a primary/secondary combination that best works for their location.  We recommend using the Mississippi River as a dividing line between east and west.


The above scenarios means you will have the following configured in Office 365:

  • Qty (2) PSTN Usage objects.  These objects are used to link voice routes with voice routing policies.  You will have one PSTN Usage object for the east route & policy, and one for the west route & policy.
  • Qty (2) Voice Routes.  A voice route for the west (Las Vegas), and a voice route for the east (Philadelphia).
  • Qty (2) Voice Routing Policies.  One assigned to users located in the west, and one assigned to users in the east.

If your users are all in the same location, then you would assign all of them to the same voice routing policy (east or west).  However, this doesn't mean you should only create a routing configuration for a single location.  We recommend creating both configurations (east & west) in case you need to switch your users over to another location, even if it's temporary.



Naming Conventions

Every organization has its own naming conventions, and Evolve IP is no different.  The steps in this article use our naming conventions, and we strongly suggest you use them for two important reasons:

  • If you need to get support from Evolve IP, our support teams will have no problem identifying, verifying, and if needed, troubleshooting your direct routing configuration.
  • If sometime in the future you decide to use Evolve IP for managing your direct routing configuration and user provisioning, we can easily slip into that role.

If you choose to use your own naming conventions, that's totally fine.  We understand.



Steps to Configure Teams Direct Routing

IMPORTANT:  The configuration steps in this article assume that your Teams users configured for direct routing will have all of their calls routed from Office 365 to the Evolve IP voice infrastructure.  This includes extension dialing and feature access code dialing (#NN, *NN).  This configuration will not affect users configured with a Microsoft dial plan, or configured to use another 3rd party vendor.

1. Connect to the Skype for Business Online Services

Connect to your Skype for Business Online services using PowerShell.  You do not need to connect to the Teams, Azure AD, or MSOL services.  If needed, review the Teams Direct Routing - 01 - Planning and Prerequisites article for details.


2. Create the PSTN Usage Objects

A PSTN Usage object links a voice routing policy to one or more voice routes.  It doesn't do anything else, and there is no configuration associated with this object.  The Set-CsOnlinePstnUsage command is used to add/remove usages to/from the usage list. The usage list is global so it can be used by policies and routes throughout your environment.

The below creates a PSTN usage object for both the Evolve IP "East" & "West" voice infrastructures.

# Define the PSTN Usage names, which are used throughout the configuration steps
$PstnUsageEast = "EvolveIP-AllCalls-East"
$PstnUsageWest = "EvolveIP-AllCalls-West"

################################
### PSTN Usage Configuration ###
################################

# Add the PSTN Usage names to the global usage list
Set-CsOnlinePstnUsage -Identity "Global" -Usage @{Add="$($PstnUsageEast)"}
Set-CsOnlinePstnUsage -Identity "Global" -Usage @{Add="$($PstnUsageWest)"}

# View the list of PSTN Usage names
Get-CSOnlinePSTNUsage


3. Create the Voice Routes

Voice routes are associated with a PSTN Usage object.  Each voice route is assigned a priority number with the lower number having a higher priority.  Additionally, a voice route includes a number pattern (regular expression) that identifies which phone numbers will be routed through a given voice route.  To route all calls through a voice route, use this expression for the number pattern:  .*

The below PowerShell code creates a voice route and associates it with its respective PSTN usage object.  Because each PSTN usage object is only associated with a single route in this configuration, the priority numbers configured in the voice routes have no affect.

In the below PowerShell code, make sure you modify lines 2 & 3 with the domains provided to you by Evolve IP.

### Enter your domains here:
$DomainPHL = "c123456.phl01.us.teams.evolveip.net"
$DomainLAS = "c123456.las01.us.teams.evolveip.net"

#################################
### Voice Route Configuration ###
#################################

# Properties for the US East route to Philadelphia
$VrPropEast = @{
  Identity              = "EvolveIP-VR-East"
  OnlinePstnUsages      = $PstnUsageEast
  NumberPattern         = '.*'
  OnlinePstnGatewayList = "$($DomainPHL)"
  Priority              = 1
  Description           = "East voice route to Evolve IP (PHL)"
}

# Properties for the US West route to Las Vegas
$VrPropWest = @{
  Identity              = "EvolveIP-VR-West"
  OnlinePstnUsages      = $PstnUsageWest
  NumberPattern         = '.*'
  OnlinePstnGatewayList = "$($DomainLAS)"
  Priority              = 2
  Description           = "West voice route to Evolve IP (LAS)"
}

# Create the voice routes
New-CsOnlineVoiceRoute @VrPropEast
New-CsOnlineVoiceRoute @VrPropWest


# View a list of all voice routes and their properties
Get-CsOnlineVoiceRoute


4. Create the Voice Routing Policies

Voice Routing Policies are linked to voice routes by assigning the routing policy to one or more PSTN Usage objects.  The order of the list of PSTN usage objects in a voice routing policy matters.  The first PSTN usage object will be evaluated first.

########################################
### Voice route policy configuration ###
########################################

New-CsOnlineVoiceRoutingPolicy "EvolveIP-East" -OnlinePstnUsages "$($PstnUsageEast)","$($PstnUsageWest)" -Description "Voice routing policy to Evolve IP US East"
New-CsOnlineVoiceRoutingPolicy "EvolveIP-West" -OnlinePstnUsages "$($PstnUsageWest)","$($PstnUsageEast)" -Description "Voice routing policy to Evolve IP US West"


5. Tenant Dial Plans & Normalization Rules

Microsoft recently added a section to the Teams Admin Center (TAC) that allows you to create tenant dial plans and normalization rules.  Feel free to use the TAC to configure the following steps, but since we are already using PowerShell to configure everything else, we will continue using it for this step too.

For more information on normalization rules and dial plans, check Microsoft's article on Creating and Managing Dial Plans.


Normalization Rules

Normalization rules are regular expressions used to translate one number format to another number format.  For example, you can translate a 4-digit extension number like 1234 to a 10-digit E.164 formatted phone number.

Evolve IP uses BroadWorks for all voice features, and this includes feature codes using star "*" and pound "#".  BroadWorks also has its own means of translating and routing N-digit extension numbers.  This makes configuring Microsoft's back-end voice infrastructure very easy.  All we need to do is send any number, no matter the length or the feature code to BroadWorks for interpretation.  If the number or feature code dialed is not supported, BroadWorks will let the user know.

Microsoft applies some default normalization rules based on the user account's assigned usage location.  These rules cannot be changed or disabled.  However, the rules we will create will be processed before the default rules are processed.  If you want to view Microsoft's default rules, run the following PowerShell command with your country code:

Get-CsVoiceNormalizationRule US | FT Name,Priority,Pattern,Translation,Description -auto


Tenant Dial Plans

Tenant Dial Plans are used to store the normalization rules.  You can use the existing Global Tenant Dial Plan, which will be applied to all users in your organization, or you can create one or more custom Tenant Dial Plans and apply them to individual users.  Since we don't want to affect any existing normalization rules and tenant dial plans, we will create a custom tenant dial plan with its own normalization rules.

Use the following PowerShell command to check for existing tenant dial plans, and normalization rules:

Get-CsTenantDialPlan

Here's an example output when there's just the global tenant dial plan and no custom normalization rules.

Identity              : Global
Description :
NormalizationRules : {}
ExternalAccessPrefix :
SimpleName : DefaultTenantDialPlan
OptimizeDeviceDialing : False

If you have normalization rules in your global tenant dial plan, you can use the following command to output just the normalization rules.

(Get-CsTenantDialPlan -Identity Global).NormalizationRules


Create the Normalization Rules & Add Them to a Custom Tenant Dial Plan

Use the following PowerShell commands to create the Normalization Rules and a new Tenant Dial Plan:

# Rule for feature access codes using the # symbol
$NR1 = New-CsVoiceNormalizationRule -Parent Global -Description "Evolve IP FAC Pound" -Pattern '^(\#\d{2})$' -Translation '$1' -Name EvolveIPFACP -IsInternalExtension $false –InMemory

# Rule for feature access codes using the * symbol
$NR2 = New-CsVoiceNormalizationRule -Parent Global -Description "Evolve IP FAC Star"  -Pattern '^(\*\d{2})$' -Translation '$1' -Name EvolveIPFACS -IsInternalExtension $false –InMemory

# Rule for extension dialing
$NR3 = New-CsVoiceNormalizationRule -Parent Global -Description "Evolve IP Extensions" -Pattern '^([1-9]\d{0,5})$' -Translation '$1' -Name EvolveIPEXT -IsInternalExtension $false –InMemory


# Create a new tenant dial plan and add the normalization rules
New-CsTenantDialPlan -Identity EvolveIP-TenantDialPlan -NormalizationRules @{add=$NR1,$NR2,$NR3}

# View all normalization rules in the new tenant dial plan
(Get-CsTenantDialPlan -Identity EvolveIP-TenantDialPlan).NormalizationRules


If needed, you can use the following command to clear all normalization rules from the new tenant dial plan:

Set-CsTenantDialPlan -Identity EvolveIP-TenantDialPlan -NormalizationRules $null



Conclusion

After configuring the back-end Skype for Business Online services for direct routing, it is recommended to wait a few hours before provisioning your Teams users with direct routing.  This gives Microsoft's back end enough time to synchronize these changes across all of the services and infrastructure.

Our testing has shown that 3 hours is usually enough time to wait, but if you are unable to provision users for direct routing after 3 hours, let us know.  We can review your direct routing configuration, and if needed, we can assist with opening a case with Microsoft.

Additionally, we recommend keeping the licenses assigned to the direct routing domain user accounts until you are satisfied with your deployment.  If you're starting with a pilot group of users, wait until their testing is done, and then you can reassign the licenses to the users in your production group.


Next Steps







  • No labels