Installing 3CX SBC (Session Border Controller) for Raspberry Pi or Debian 8 amd64
On this topic
The 3CX SBC is deployed to remote offices where there are more than 2 or 3 IP Phones, to direct only their signaling through the 3CX Tunnel and keep the media streams local which reduces the amount of internet bandwidth that local calls between phones use. SBC will bundle all SIP traffic over a single TCP port which simplifies your deployment by reducing firewall configuration. In addition 3CX SBC will add stability & security and allow you to easily manage and provision your IP Phones remotely.
When opting for a Raspberry Pi, make sure to purchase the Raspberry Pi 2 or 3 Model B which is more performant than it’s predecessor (V1).
The 3CX SBC on a Raspberry PI 2 or 3 should be used when the remote office has up to 20 phones with a maximum of 10 BLF keys per device. If you have more than 20 phones, then you need to use the 3CX SBC for Windows or Debian.
A guide on how to install Raspbian on a PI check the how to on the end of the guide.
Step 1: Download and Install 3CX SBC
This step is common for Debian or Raspbian.
Type the following command to the terminal:
and press “Enter”.
Now type this command:
sudo bash 3cxsbc.zip
and press “Enter”
Step 2: Configure 3CX SBC
Once installed you will be prompted to enter the details for your 3CX Phone System as described above in the “Required Details” section.
In this section you need to access the 3CX Management console to get the required information.
- Enter “FQDN”: You can get this from “Settings” > “Network” > “FQDN Tab”.
- Enter “Local IP”. Enter the 3CX’s IP Address. If the 3CX Phone System is behind a NAT enter the local IP. If the 3CX Phone System is not behind a NAT (where “ipconfig” will result in a public IP address), then enter the Public IP.
- Enter “PBX Port”: You can get this from "Settings” > “Network”> “Ports” tab > “SIP Port” field.
- Enter “Tunnel port”: located in “Settings” > “Security” > “3CX Tunnel” > “Tunnel Listening port”
- Enter “Tunnel Password”: which you can get from “Settings” > “Security” > “3CX Tunnel” > “Tunnel Password”.
- 3CX SBC has the ability to connect your remote office to another standby 3CX Phone System in case the 3CX Primary Server is no longer reachable. If you have failover configured with 3CX Phone System, select Option 1: Enable Failover followed by the public ip of the standby failover server. Otherwise choose Option 2.
- Enable Encryption to add an extra layer of security by encrypting all data and calls passing through the 3CX SBC and the 3CX PBX. This requires 3CX Version 14 and higher.
Step 3: Upgrading the SBC (Optional)
If you are already have the 3CX SBC installed on your Raspberry Pi you can upgrade as follows:
- Enter ‘sudo apt-get update’
- Enter ‘sudo apt-get install 3cxsbc’
- Type “N” and press “Enter”
Your 3CX SBC will update and restart. You can proceed to configure your IP Phones from your 3CX Phone System.
Install Raspbian Operating system
- Assemble your Raspberry Pi, connect it to a monitor using an HDMI cable, plugin to your network and power up the device.
- A window titled “NOOBS” will appear. Select Raspbian OS and install. When the installation is completed a menu will come up.
- Select option 2 to change the default password. The Default username is “pi” and password “raspberry”.
- Select option 8 - (Advanced Options) and select the “Hostname” option. Enter a unique hostname for the device.
- Enable SSH on the device to be able to connect to it using a SSH client.
- From the main menu select “Finish” and select “Yes” to reboot.