MS Teams - Assign Numbers For CallTower
Summary:
This article is intended for CallTower Teams Direct Routing customers who do not have a service/admin account for 365 in CallTower Connect. The user must be created in CallTower Connect and assigned a phone number prior to performing these steps in the Teams Admin Center.
Login into the Teams Admin Center as a 365 Global Administrator or Teams Administrator: https://admin.teams.microsoft.com
On the left-hand side click on Users>Manage users
Search for the user that needs to have a direct routing number added and click on the Display name
Under the Account tab click Edit next to General information
Add the phone number to the assigned phone number field in the format shown below with the 1 in front and then click Apply
To Remove the number just blank out the Assigned phone number field then click Apply
This message will pop up , click Wait
Click on Policies and then click Edit next to Assigned policies
Scroll down to Voice routing policy and drop down to select CallTower Route then click Apply.
To remove the voice routing policy drop-down, select Global then click Apply.
PowerShell Cmdlets to remove numbers and assign numbers
(These instructions apply to Teams Direct Routing Commercial without Service Account)
You must connect to the Microsoft Teams PowerShell Module using a 365 Global Administrator or Teams Administrator account.
To remove the number from the user
Remove-CsPhoneNumberAssignment -Identity username@domain.com -RemoveAll
Grant-CsOnlineVoiceRoutingPolicy -Identity username@domain.com -PolicyName "$null"
To add the number to the user
Set-CsPhoneNumberAssignment -Identity username@domain.com -PhoneNumber +18015551212 -PhoneNumberType DirectRouting
Grant-CsOnlineVoiceRoutingPolicy -Identity username@domain.com -PolicyName "CallTower Route"
GCC High Powershell Cmdlets:
Important Note: This section only applies to GCC High O365 Tenants all commercial tenants should use the section above.
To add the number to the user:
Set-CsUser -Identity username@domain.com -URI tel:+18015551212 -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
Grant-CsOnlineVoiceRoutingPolicy -Identity username@domain.com -PolicyName "CallTower Route"
To remove the number from a user:
Set-CsUser -Identity username@domain.com -URI $null
Grant-CsOnlineVoiceRoutingPolicy -Identity username@domain.com -PolicyName $null
To add the number to a resource account
- To add a phone number to a resource account you need to reference the proper application ID depending on if the resource account is for an auto attendant or a call queue. Insert one of the application IDs below into the command at the bottom.
"Auto Attendant" = "ce933385-9390-45d1-9512-c8d228074e07"
"Call Queue" = "11cd3e2e-fccb-42ad-ad00-878b93575e07"
- Set-CsOnlineApplicationInstance -Identity user@domain.com -OnpremPhoneNumber
tel:+18015551212 -ApplicationId [Insert Application ID Here]