Teams | VoxSBC Setup with PowerShell

Tutorials / MSTeams /
  • Teams | VoxSBC Setup with PowerShell
  • Teams | VoxSBC Setup with PowerShell


    Please note that Microsoft has changed their Powershell commands and the commands in this guide may be deprecated, please check out our newest guide here.



    In this guide we are going to show you how to set up the VoxSBC with your Microsoft Teams account. You will need access to the Microsoft Admin page, as well as PowerShell as Admin.

    To use Teams dial pad, you will need a phone system license on your Teams Users. This is included in E5 but added on in E1/E3.


    1. Reach out to Voxtelesys and get your VoxSBC Domain

    2. Open the VoxSBC Setup Guide in Portal

    Under SIP Registrations > Teams Domain > Click on the Teams Icon (under Options)

    3. Follow VoxSBC Setup Guide Instruction


    VoxSBC Setup Guide Instruction

    Quick notes on the setup guide

    Add a Domain in Microsoft

    1. Log in to Microsoft Admin Center here

    2. Add a Domain: Side Panel > Show All > Settings > Domains > + Add Domain

    3. In the "Domain name" text box, copy and paste the "Primary Domain Name" from the SBC guide (Should look like *****-****.sip.voxtelesys.net).

    4. Add a TXT record to the Domain's DNS records.

    5. Copy the TXT Value from Microsoft and paste into the SBC guide (Should look something like MS=ms********).

    6. Wait a couple minutes for the record to update, then verify it.

    Continued notes on the Setup Guide (Verify User and Domain)



    Now that you have verified the domain you will need to add a new user and verify the domain in PowerShell.

    1. Microsoft Admin Center here

    2. Add a new user: Users > Active Users > + Add a User

    3. You can add the Display name as VoxSBC, Username as sbc, and for the Domain select your *****-****.voxtelesys.net

    4. For licensing, the user needs an E1, E3, or E5 license and global admin privileges.

    • Once you have verified the admin user in PowerShell, you can remove the licensing for this user.

    Now log in to PowerShell from your desktop



    1. Run PowerShell as Admin
    2. Log in to Teams via PowerShell: Guide here
    3. Once you are logged in verify the user and domain with the following command:

    Get-CsOnlineUser -Identity "sbc@*****-****.sip.voxtelesys.net" | fl RegistrarPool

    • Replace the *****-****.sip.voxtelesys.net with your unique domain from Voxtelesys.

    1. You should get a RegistrarPool response
    • You can now remove the licensing for the SBC user, but do not delete the user.

    Continued notes on the setup Guide (Create Teams Routing)

    Add PSTN, Voice routes, and Policies to Teams

    1. Run PowerShell as Admin

    2. Log in to Teams via PowerShell: Guide here

    3. Create a PSTN with the following command:

    Set-CsOnlinePstnUsage -Identity global -Usage @{add="voxtelesys"}

    4. Verify the PSTN with the following command:

    Get-CsOnlinePstnUsage

    5. Create a PSTN with the following command:

    New-CsOnlineVoiceRoutingPolicy “voxtelesys” -OnlinePstnUsages "voxtelesys"

    6. Verify the PSTN with the following command:

    Get-CsOnlineVoiceRoutingPolicy

    7. Create a PSTN with the following command:

    New-CsOnlineVoiceRoute -Identity voxtelesys -NumberPattern ".*" -OnlinePstnGatewayList “*****-****.sip.voxtelesys.net” -OnlinePstnUsages "voxtelesys"

    • Replace the *****-****.sip.voxtelesys.net with your unique domain from Voxtelesys.

    8. Verify the PSTN with the following command:

    Get-CsOnlineVoiceRoute

    Add Calling plans and numbers to Teams Users

    1. Run PowerShell as Admin
    2. Log in to Teams via PowerShell: Guide here
    3. Add phone number to Teams user

    Set-CsUser -Identity "user@example.com" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI TEL:17015558500

    • Replace user@example.com with your Teams user's email.
    • Replace 17015558500 with your user's phone number.
    • If doing this as an extension replace 17015558500 with the extension number.

    4. Add Voice Routing Policy to a Teams user

    Grant-CsOnlineVoiceRoutingPolicy -Identity "user@example.com" -PolicyName "voxtelesys"

    • Replace user@example.com with your Teams user's email.


    For more Microsoft Teams Guides, click here!

    Voxtelesys Portal Guides here!