VitalPBX: Teams Setup


Add Teams SIP Trunk to VitalPBX


1. PBX > External > Trunks

2. Set Technology to SIP

3. General Settings
  • Description: Voxtelesys_SIP
  • Profile: Default SIP Profile
  • Codecs: ulaw,alaw,g729
  • Trunk CID: Number from Voxtelesys

  • Local Username: Username from Voxtelesys

  • Remote Host: Domain from Voxtelesys

  • Insecure: Port,Invite

  • Remote Username: Username from Voxtelesys

  • Remote Secret: Password from Voxtelesys

  • From Domain: Domain from Voxtelesys

  • Register String: Username:Password@Domain

  • Update and your trunk will register!

To check you can go to PBX > Tools > Asterisk CLI > run the command sip show registry



Add Outbound Route to Teams


1. PBX > External > Outbound Routes

2. Create Route
  • Description: Teams
  • Trunks: Select your Voxtelesys Teams SIP Trunk
  • Prefix: 8080 * This can be any prefix you want
  • Pattern: XXXX * Set to the extension length of your Teams users

5. Update


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 to 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 user's extension number on the VitalPBX

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/VitalPBX
From VitalPBX to Teams
  1. Dialing (Note the prefix to route to Teams Trunk)

  1. Calling from VitalPBX

  1. Ringing/Answering on Teams


From Teams to VitalPBX
  1. Dialing

  1. Calling

  1. Ringing on VitalPBX

  1. Answered on VitalPBX