Tutorials: Teams Setup

Under the "Connectivity" tab, click on "Trunks" from the drop down.

Click on "+ Add Trunk" and select the "Add SIP (chan_pjsip) Trunk" from the drop down.

  • Trunk Name: Voxtelesys_Teams
  • Outbound CallerID: Number from Voxtelesys
  • Maximum Channels: Line limit from Voxtelesys

Change to the "pjsip Settings" tab.

  • Username: From Voxtelesys
  • Secret: From Voxtelesys
  • SIP Server: From Voxtelesys

Change to the "Advanced" tab under "pjsip Settings"

  • Contact User: From Voxtelesys
  • From Domain: Same as SIP Server from Voxtelesys

Change to "Codecs" tab under "pjsip Settings"

  • Set the following codecs to: ulaw

Submit and apply your configuration.

Add an outbound route to Teams. Under the "Connectivity" tab, click on "Outbound Routes" from the drop down.

Click on the "+ Add Outbound Route" button.

  • Route Name: Voxtelesys_Teams
  • Route CID: Number from Voxtelesys
  • Trunk Sequence for Matched Routes: Voxtelesys Teams Trunk

Change to the "Dial Patterns" tab.

Match the rules below:

  • Prefix: Your Prefix Rule to route to Teams
  • Match Pattern: XXXX

Submit and apply your configuration.

Add an extension and a route to a user in Teams. Log in to your Teams account via PowerShell.

Set up your VoxSBC, if you haven't already. Skip the "Assign DID and Voice Routing to Users" part as you will do that a little differently below.


Set-CsUser -Identity “[email protected]” -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI Tel:2048

  • For [email protected] set the user's email that you want to assign the caller ID.
  • For 2048 set the user's extension number on FreePBX.


Grant-CsOnlineVoiceRoutingPolicy -Identity “[email protected]” -PolicyName “voxtelesys”

From FreePBX to Teams

Dialing (Note: the prefix to route to Teams Trunk)

Calling from FreePBX

Ringing/Answering on Teams

From Teams to FreePBX



Ringing on FreePBX

Answered on FreePBX