Configuring PortSIP SBC for WebRTC
After successfully installing the PortSIP SBC following the guide, you can now configure the SBC for the WebRTC feature.
Configure PortSIP SBC on the Same Server as PortSIP PBX
If you installed the PortSIP SBC on the same server as the PortSIP PBX, please follow the below steps to configure it.
Prepare the SSL certificate as outlined in the guide for TLS Certificates for TLS/HTTPS/WebRTC, You will have the
portsip.pem
portsip.key
files.Open
https://66.175.221.120:8883
in the browser and log in using the credentialsadmin/admin
. Just ignore the browser SSL certificate warning and continue processing.Choose Settings > TLS Certificates from the menu, click the Add button:
Enter
"SBC Host Name"
for the Description field as an example.Enter
uc.portsip.cc
for the TLS Domain.Open the
portsip.pem
file in Windows Notepad and copy its contents into the Certificate Context field.Copy and paste the contents of the
portsip.key
file into the Private Key Context field.Turn on the option This is SBC Web Domain Certificate.
Click OK to save the certificate.
Select Settings > Network from the menu, fill in the following fields:
Web Domain with
uc.portsip.cc
Private IPv4 with
192.168.1.72
,Public IPv4 with
66.175.221.120
.
By default, the Create default transports automatically option is turned on, and the SBC will create the default transports after successfully setting up the SBC IP address. Please keep this option enabled to create the default transports.
The SBC will create the default transports as the below:
TCP on port 5069: Used to communicate with PBX
TLS on port 5067: Used to communicate with Microsoft Teams
WSS on port 5065: Provides WebRTC service
UDP on port 5066: Provides standard SIP service You can turn off the Create default transports automatically option to prevent the SBC from automatically creating the default transports, but this is not recommended.
When you click OK, the SBC will restart automatically and immediately log you out.
Execute the following commands to restart the PBX server:
cd /opt/portsip
sudo /bin/shsh sbc_ctl.sh restart
If the server is Windows, simply restart the server directly.
Sign in to the PBX web portal at
https://uc.portsip.cc:8887
Navigate to the Advanced > SBC menu.
Click the Generate button to generate the token for the SBC's access.
Click the Copy button to copy the token.
Sign in to the SBC Web Portal at
https://uc.portsip.cc:8883
Choose Settings > PBX from the menu. You need to set up the PBX information here for the SBC to communicate with the PBX.
Paste the copied token into the PBX Access Token field,
Enter
192.168.1.72
for the PBX IPv4 Address field.Since the TCP transport is created on port 5063 in the PBX, select TCP for Prefer Transport to communicate with the PBX
Enter
"5063"
for the PBX Port.
Open the URL
https://uc.portsip.cc:10443/webrtc
in your browser, and the WebRTC client will launch. You can scan the user's QR code to register with the PBX and make/receive calls.
Configure PortSIP SBC on a Separate Server
If you installed the PortSIP SBC on a separate server from the PortSIP PBX, please follow the below steps to configure it.
Prepare the SSL certificate as outlined in the guide for TLS Certificates for TLS/HTTPS/WebRTC, You will have the
portsip.pem
portsip.key
files.Open
https://66.175.221.120:8883
in the browser and log in using the credentialsadmin/admin
. Just ignore the browser SSL certificate warning and continue processing.Choose Settings > TLS Certificates from the menu, click the Add button:
Enter
"SBC Host Name"
for the Description field as an example.Enter
sbc.portsip.cc
for the TLS Domain.Open the
portsip.pem
file in Windows Notepad and copy its contents into the Certificate Context field.Copy and paste the contents of the
portsip.key
file into the Private Key Context field.Turn on the option This is SBC Web Domain Certificate.
Click OK to save the certificate.
Select Settings > Network from the menu, fill in the following fields:
Web Domain with
sbc.portsip.cc
Private IPv4 with
192.168.1.73
,Public IPv4 with
66.175.221.120
.
By default, the Create default transports automatically option is turned on, and the SBC will create the default transports after successfully setting up the SBC IP address. Please keep this option enabled to create the default transports.
The SBC will create the default transports as the below:
TCP on port 5069: Used to communicate with PBX
TLS on port 5067: Used to communicate with Microsoft Teams
WSS on port 5065: Provides WebRTC service
UDP on port 5066: Provides standard SIP service You can turn off the Create default transports automatically option to prevent the SBC from automatically creating the default transports, but this is not recommended.
When you click OK, the SBC will restart automatically and immediately log you out.
Execute the following commands to restart the PBX server:
cd /opt/portsip
sudo /bin/shsh sbc_ctl.sh restart
If the server is Windows, simply restart the server directly.
Sign in to the PBX web portal at
https://uc.portsip.cc:8887
Navigate to the Advanced > SBC menu.
Click the Generate button to generate the token for the SBC's access.
Click the Copy button to copy the token.
Sign in to the SBC Web Portal at
https://sbc.portsip.cc:8883
Choose Settings > PBX from the menu. You need to set up the PBX information here for the SBC to communicate with the PBX.
Paste the copied token into the PBX Access Token field,
Enter
192.168.1.72
for the PBX IPv4 Address field.Since the TCP transport is created on port 5063 in the PBX, select TCP for Prefer Transport to communicate with the PBX
Enter
"5063"
for the PBX Port.
Open the URL
https://sbc.portsip.cc:10443/webrtc
in your browser, and the WebRTC client will launch. You can scan the user's QR code to register with the PBX and make/receive calls.
Add the SBC IP address to the PBX whitelist
To prevent the PBX from limiting the request rate, you need to add the SBC IP address to the whitelist in the PBX.
Sign in to the PBX as the System Administrator.
Navigate to the IP Blacklist menu and click Add.
Enter the SBC IP address, as shown in the screenshot below.
Set a long expiration date for the entry to ensure it remains valid for an extended period.
Check opened firewall ports
The below commands are used to check currently opened ports for PortSIP SBC.
Last updated