Tutorials: Teams Setup

Learn how to connect the VoxSBC to FreePBX to call to and from Teams! Keywords: FreePBX, Free, VoxSBC, SBC, Teams, Configuration
trunks in connectivity tab dropdown in freepbx

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

add trunk dropdown in freepbx



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

general settings tab in FreePBX



Enter the Following:

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

Change to the "pjsip Settings" tab.

general pjsip setting in freepbx



Enter the Following:

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

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

pjsip advanced settings in freepbx

Enter the Following:

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

Change to "Codecs" tab under "pjsip Settings"

pjsip codecs settongs in freepbx



Set the following codecs to:

ulaw

Submit and apply your configuration.

outbound routes in drop down under the connectivity tab



Add an outbound route to Teams.

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

add outbound route button



Click on the "+ Add Outbound Route" button.

route settings in freepbx



Enter the following:

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

Change to the "Dial Patterns" tab.

dial patterns tab under outbound routes in freepbx

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.

Command:

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.

Command:

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


CsOnlineVoiceRoutingPolicy

dialing in teams



From FreePBX to Teams

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

calling from FreePBX



Calling from FreePBX

image of call on teams



Ringing/Answering on Teams

dialing from teams to FreePBX

From Teams to FreePBX.

Dialing

calling screen



Calling

ringing on FrePBX



Ringing on FreePBX

ringing on freepbx



Answered on FreePBX