How to Install Asterisk on Debian Latest

Asterisk is an open-source communication platform that can be used to build a variety of communication applications. In this tutorial, we will guide you on how to install Asterisk on Debian latest.

Prerequisites

Before you begin, ensure that you have the following:

Step 1: Update System Packages

Before installing any new software on your system, it's essential to update your system's package manager to ensure that you are installing the latest packages available. To do that, you can use the following command:

sudo apt update && sudo apt upgrade -y

Step 2: Install Required Dependencies

Asterisk may require several dependencies to be installed on your system before installation. You can install all dependencies by running the following command:

sudo apt install build-essential libssl-dev libncurses5-dev libnewt-dev libxml2-dev libsqlite3-dev uuid-dev git subversion -y

Step 3: Download Asterisk Source Code

The latest asterisk source code can be downloaded and extracted from the Asterisk website. We recommend downloading the latest long-term support (LTS) version by running the following command:

wget https://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-18.6.0.tar.gz
tar -zxvf asterisk-18.6.0.tar.gz
cd asterisk-18.6.0

Step 4: Compile and Install Asterisk

To compile and install Asterisk as a standard user, execute the following commands on your terminal:

./configure
make
sudo make install
sudo make config

These commands will configure, compile, and install Asterisk as well as set the configuration files.

Step 5: Start Asterisk Service

After successfully installing Asterisk, you can now start the Asterisk server using the following command:

sudo systemctl start asterisk

To verify that Asterisk is running correctly, type the following command in your terminal:

sudo asterisk -rv

The above command opens the Asterisk CLI. If the installation was successful, you should be able to see the Asterisk CLI prompt.

You can then proceed to configure Asterisk to suit your specific requirements.

Conclusion

In this tutorial, you learned how to install Asterisk on Debian latest. With the steps outlined above, you can now install Asterisk, start the service, and configure it as per your needs.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!