Install 3CX SBC on Raspberry Pi

This guide is broken into two sections. The first section covers the installation & configuration of the Raspberry Pi’s OS,
and the second section covers the installation & configuration of the 3CX-SBC program that will be running on the Pi.

Section 1: Installation & Configuration of Raspbian Linux on the Raspberry Pi:

Download latest Raspbian Linux Lite from raspberrypi.org – https://www.raspberrypi.org/downloads/
Use Etcher to write the downloaded Linux image to the SD card – https://www.balena.io/etcher/
Remove and re-insert the SD card
Use notepad or similar to create a blank text file on the root of the SD card called ssh and remove the extension from the filename
Unmount the SD card and insert into the Raspberry Pi
Connect to network & power
Locate the let it boot, locate it in DHCP (should appear as ‘raspberrypi’)
SSH to the Raspberry Pi using the IP address in DHCP with username: pi, and password: raspberry
Enter in sudo raspi-config
Using the Raspberry Pi configuration utility, make the following adjustments:
Under the localisation menu, set up appropriate settings for the region in all four sub menus:

  • Change Locale to en_AU.UTF-8
  • Change Timezone to Australia, Melbourne
  • Change Keyboard Layout to EN_AU
  • Change Wi-Fi Country to Australia
  • Back out to the main menu, and enter the Network Options

Change hostname to something meaningful like 3CXSBC01
Change the user password for the account ‘pi’ to something else
Identify the MAC address either in DHCP or using the ‘ifcommand’ & looking at the ether line under eth0
Log into the client’s DHCP server and create a DHCP reservation for the MAC address on their network (assuming the VLAN for VoIP has already been setup) – a static IP address can also be used instead of a reservation.
Update the client docuemntation with the hostname, IP address, username & password
Reboot the Pi after exiting the configuration program
SSH back into the pi
Enter the command: sudo apt-get update to install any updates to the OS

Section 2: Installation & Configuration of 3CX-SBC onto the Raspberry Pi:

Now it’s time to download and install the 3CX-SBC program onto the Pi…
Enter the command:

wget https://downloads-global.3cx.com/downloads/sbc/3cxsbc.zip -O- | sudo bash

You will be presented with the 3CX SBC installer program which will outline the 3CX system requirements for the version of SBC you are installing on the Pi.
Press OK, accept the license agreement (no one is going to read this anyway)
From here, you will need to enter in the URL from the 3CX web interface for the SBC Trunk
Next enter in the Authentication key
Press OK to proceed and it will finalise configuration
Confirm in the 3CX Web console that the SBC trunk has come online

Congratulations! You have successfully completed the instalation of 3CX-SBC on a Raspberry Pi