FreePBX: Teams Setup


Video coming soon!

Add SIP Trunk


1. Connectivity > Trunks

2. + Add Trunk

Add a new SIP (chan_pjsip) Trunk

3. General Trunk Settings

Trunk Name: Voxtelesys_Teams

Outbound CallerID: Number from Voxtelesys

Maximum Channels: Line limit from Voxtelesys

Change to "pjsip Settings" tab

4. pjsip Settings (General)

Username: From Voxtelesys

Secret: From Voxtelesys

SIP Server: From Voxtelesys

Change to "Advanced" tab under pjsip Settings

5. pjsip Settings (Advanced)

Contact User: From Voxtelesys

From Domain:Same as SIP Server from Voxtelesys

Change to "Codecs" tab under pjsip Settings

6. pjsip Settings (Codec)

Set the following codecs to: Ulaw

7. Submit and apply config


Add Outbound Route to Teams


1. Connectivity > Outbound Routes

2. + Add Outbound Route

3. General Trunk Settings

Route Name: Voxtelesys_Teams

Route CID: Number from Voxtelesys

Trunk Sequence for Matched Routes: Voxtelesys Teams Trunk

Change to the "Dial Patterns" tab

4. Dial Pattern

Match the rules below

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

![]

5. Submit and apply config


Add Extension and Routes to User in Teams


1. Login into your Teams account Via Powershell

See guide Here

2. Add Voxtelesys SBC/PSTN

If you haven't already setup your Voxtelesys SBC please refer these Instructions

  • Skip the "Assign DID and Voice Routing to Users" part as you will do that a little differently below
3. Add Extension Number to User

Command: Set-CsUser -Identity “user@example.com” -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI Tel:2048

  • For user@example.com set the users email that you want to assign the caller ID
  • For 2048 set the users extension number on the 3CX

4. Grant User Access to Voice Routing Policy

Command: Grant-CsOnlineVoiceRoutingPolicy -Identity “user@example.com” -PolicyName “voxtelesys”

5. Test calls in and out of Teams/FreePBX
From FreePBX to Teams
  1. Dialing (Note the prefix to route to Teams Trunk)

  1. Calling from FreePBX

  1. Ringing/Answering on Teams


From Teams to FreePBX
  1. Dialing

  1. Calling

  1. Ringing on FreePBX

  1. Answered on FreePBX