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.
Change to the "pjsip Settings" tab.
Change to the "Advanced" tab under "pjsip Settings"
Change to "Codecs" tab under "pjsip Settings"
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.
Change to the "Dial Patterns" tab.
Match the rules below:
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
Command:
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
Dialing
Calling
Ringing on FreePBX
Answered on FreePBX