How to Install Asterisk on Ubuntu 20.04 (Open Source VoIP Server). Asterisk is a powerful and versatile open-source VoIP server ideal for small businesses.
Asterisk supports the most common protocols and can be used with any data connection, including DSL, cable modem, ISDN, Wi-Fi and Bluetooth. In this tutorial, we will show you how to install Asterisk on your Ubuntu 20.04 system.
What is Asterisk
Asterisk is an open-source PBX and VoIP (Voice over IP) application that allows you to easily install, maintain and run a fully managed IP telephony system.
Asterisk uses a mix of open-source software and proprietary components to provide VoIP services. It allows users to make, receive, and manage telephone calls over IP based networks and traditional analog lines, using SIP protocol or VoIP services, using a computer or smartphone.
Asterisk also provides advanced features such as content filtering, call routing, and notification services for both PSTN and SIP traffic. It is ideal for businesses that require flexible enterprise telephony functionality at competitive costs.
It can be used in almost any network environment, including small businesses, hospitals, school districts, and large corporations.
Asterisk is free of charge, with all proprietary code included in the source tree, so you can modify and/or install it on your servers. The Asterisk is available for all major operating systems like Linux, Microsoft Windows Server 2003/2008/2012 Server family, FreeBSD, and Mac.
In this blog post next about Install Asterisk on Ubuntu 20.04 (Open Source VoIP Server) we shall learn Asterisk features.
Asterisk is a communications software that allows you to run both your telephone network and VoIP services. It has many advantages over other traditional solutions, including:
Asterisk allows users to make and receive phone calls, send and receive faxes, and record their voice messages.
Asterisk can route all your calls through the same number.
It has no license fees.
Asterisk has a built-in voice mail system that stores messages and provides an easy interface for retrieving them.
It is highly flexible and can be integrated with other systems, such as email servers and SQL databases.
Asterisk is highly customizable, with many extensions and features.
Follow this post to learn how to install Asterisk Server on Ubuntu 20.04.
Install Asterisk on Ubuntu 20.04 (Open Source VoIP Server)
Asterisk has no official repository, so you need to compile and install Asterisk from its Github source code. But before diving into installation, you need to resolve dependencies.
Update and Install Dependent Packages
First of all, update your system to ensure all packages are up to date.
sudo apt update
Next, you need to install the dependent packages that are needed for Asterisk installation.
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version (0.29.1-0ubuntu4).
pkg-config set to manually installed.
…
The LibPRI library is used to communicate with ISDN connections, and DAHDI enables Asterisk to communicate with analog and digital telephones. So you need to install it on your system.
DAHDI
You have to compile and install two DADHI Github repositories, dahdi-linux and dahdi-tools.
Clone the dahdi-linux repository with the following command.
sudo git clone -b next git://git.asterisk.org/dahdi/linux dahdi-linux
Next, navigate to the source code folder and compile it with the following commands.
cd dahdi-linux
sudo make
Now, install the DADHI using the following command.
sudo make install
cd..
Similarly, compile dahdi-tools using the following commands.
sudo git clone -b next git://git.asterisk.org/dahdi/tools dahdi-tool
cd dahdi-tools
sudo autoreconf -i
sudo ./configure
Now, compile and install dahdi-tools with the following commands.
sudo make install
sudo make install-config
sudo dahdi_genconf modules
cd ..
LibPRI
Clone and install LibPRI from its source code using the following commands.
sudo git clone https://gerrit.asterisk.org/libpri libpri
cd libpri
sudo make
sudo make install
Now that these libraries are installed, you can move on to compiling and installing Asterisk on your Ubuntu system.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfwupdplugin1
…
Provide your area code when prompted during installation.
How to Install Asterisk on Ubuntu 20.04 (Open Source VoIP Server) Conclusion
This tutorial shows you how to install Asterisk (an open-source VoIP server) on Ubuntu 20.04. Asterisk is an open-source voice-over IP (VoIP) software suite intended to provide telephony functionality.
This tool is a popular PBX platform for developing communications applications such as conference servers , VoIP solutions like call centers, and government agencies worldwide. Asterisk powers Business Telephone Systems, it is It is a toolkit for building IP PBX .
If you are interested in other solutions like this, explore our content on VoIP.
Information Security professional with 4+ years of experience. I am interested in learning about new technologies and loves working with all kinds of infrastructures.