Configuring SBC and PBX
Last updated
Last updated
Please confirm the following items have been completed before configuring the SBC and PBX for Microsoft Teams Direct Routing.
The PBX has been installed and configured.
The SBC has been installed and configured.
The Microsoft Teams Direct Routing has been configured.
Sign in to the SBC web portal https://sbc.portsip.cc:8883/
Select the menu Settings > Teams Base Domains, and click the Add button to add the SBC domain that SBC will send OPTIONS message to MS teams to keep alive, in case it's "sbc.portsip.cc".
After adding the teams base domain, the SBC will periodically send OPTIONS to Teams; if it receives 200 OK for the OPTIONS message, the Status of this domain will display as Active.
If it is displayed as Inactive, something is wrong, please double-check every step.
Ensure the TCP transport on port 5063 has been added to the PBX.
Sign in to the PBX web portal as System Administrator, navigate to the Tenants menu, select a tenant to be managed, and click the Manage button; or sign in the user who is the "admin" role of the tenant into the PBX web portal.
Ensure the SIP domain for this tenant is already set as sbc.portsip.cc
.
Select Call Manager > Trunks menu, and click the arrow button to choose the trunk type Microsoft Teams.
DID/DDI Pool
: The phone number that will be dialed from the teams to PBX, it's can be a single number or a number range, for example, 331001-331100; the 33 is the country code of the Teams user you specified when you create the tenant user(33 is for France); 1001-1100 is the phone number range for Teams users.
The host domain or IP can't be modified, the port must be 5060.
Enter the SBC server private IP 192.168.1.73
into the Outbound Proxy Server field. If the SBC is installed on the same server as PBX, then this is the PBX server's private IP.
The Outbound Proxy Server Port is the 5069
by default, the port is the SBC transport port that communicates with PBX.
The Transport is TCP.
Click the Next button
Turn off the Rewrite the host IP of Via header by public IP when sending the request to the trunk, and click OK to complete the Teams Trunk configuring.
The inbound rule must be created in order to route the Microsoft Teams call to the extension or system service, such as IVR, Call Queue, and Ring Group.
Sign in to the PortSIP PBX Web Portal by System Admin credentials, click the menu Tenants, select a tenant then click the Manage button to manage this tenant to configure the inbound rule. or sign a user who has the Tenant Admin
permission into the Web Portal to manage that tenant.
From the Web Portal, select Call Manager > Inbound Rules, and click the Add button.
Enter a friendly name for the rule, for example, From Teams, as shown below screenshot, when dialing the number 331001
from Teams, the call will be routed to the PBX extension 101
. When the Teams user dials 1001, and once the call arrives at PBX, the dialed number will be +331001
, we should remove the +
and enter the number only.
We can create the outbound rule that routes the calls from PBX to Microsoft Teams.
Sign in to the PortSIP PBX Web Portal by System Admin credentials, click the menu Tenants, select a tenant then click the Manage button to manage this tenant to configure the outbound rules. or sign a user who has Tenant Admin
permission into the Web Portal to manage that tenant.
From the Web Portal, select Call Manager > Outbound Rules, and click the Add button.
We want to route all calls made by extension 102 to Microsoft Teams, then configure the outbound rule as the below screenshot shows.
When extension 102 dials a number that does not exist in the PBX internal directory, the call is routed to Microsoft Teams.
For example, when extension 102 dials 1001, the PBX routes the call to Microsoft Teams, and since the callee number is 1001, the Teams user who has the phone number 1001 will be ringing.
Consider this scenario: A Teams caller calls phone numbers and routes to SBC/PBX. These calls should be sent to the trunk in order to ring the mobile phone/landline. Since it is impossible to create multiple inbound rules for all phone numbers, we can implement it easily as follows:
When creating the Teams trunk, specify the DID pool as 1 or a number range that includes 1, for example, 1-1000000.
Create the inbound rule and specify the DID number as 1. Specify the destination number as 0. The 1 means to match all called numbers that come from Teams, and the 0 means don’t modify the called number.
Create the outbound rule to route Teams calls to the trunk as you prefer.