Install FreePBX 15 with Asterisk 16 on Debian 10
Install Asterisk 16
Step 1: Update system
sudo apt update && sudo apt -y upgrade
sudo reboot
Step 2: Install Asterisk 16 LTS dependencies
sudo apt install git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev
Step 3: Download Asterisk 16 LTS tarball
cd /usr/src/
sudo curl -O http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
sudo tar xvf asterisk-16-current.tar.gz
cd asterisk-16*/
# download the mp3 decoder library into the source tree
sudo contrib/scripts/get_mp3_source.sh
# Ensure all dependencies are resolved
sudo contrib/scripts/install_prereq install
Step 4: Build and Install Asterisk 16
sudo ./configure
sudo make menuselect
- Add-ons: chan_ooh323, format_mp3
- Core Sound Packages: CORE-SOUNDS-EN-*
- Music On Hold File Packages: MOH-OPSOUND-*
- Extra Sound Packages: EXTRA-SOUNDS-EN-*
- Applications: app_macro
sudo make
sudo make install
sudo make progdocs
sudo make samples
sudo make config
sudo ldconfig
Create Asterisk User
sudo groupadd asterisk
sudo useradd -r -d /var/lib/asterisk -g asterisk asterisk
sudo usermod -aG audio,dialout asterisk
sudo chown -R asterisk.asterisk /etc/asterisk
sudo chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk
sudo chown -R asterisk.asterisk /usr/lib/asterisk
Set Asterisk default user to asterisk
$ sudo vim /etc/default/asterisk
AST_USER="asterisk"
AST_GROUP="asterisk"
$ sudo vim /etc/asterisk/asterisk.conf
runuser = asterisk ; The user to run as.
rungroup = asterisk ; The group to run as.
Restart asterisk service
sudo systemctl restart asterisk
# Enable asterisk service to start on system boot
sudo systemctl enable asterisk
# Test to see if you can connect to Asterisk CLI
sudo asterisk -rvv
Install FreePBX 15
Reference
- Install Asterisk 16 with FreePBX 15 on Ubuntu 20.04/18.04/16.04 & Debian 9
- Install Asterisk 16 LTS on Ubuntu 20.04/18.04/16.04 & Debian 10/9
- How To Install FreePBX 15 on Ubuntu 20.04/18.04/16.04 & Debian 10/9
- Installing FreePBX 15 on Debian 9.6