How to Install Asterisk on CentOS 7

Install Asterisk on CentOS 7

In this tutorial we will show you how to install Asterisk on CentOS 7 server. For those of you who didn’t know, Asterisk is the most popular and widely adopted open source PBX platform that powers IP PBX systems, conference servers and VoIP gateways. It is used by individuals, small businesses, large enterprises and governments worldwide.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root accge of Linount, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Asterisk on a CentOS 7 server.

Install Asterisk on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Dependencies.

Install all required packages on your Asterisk with the following commands:

Step 3. Disable SELinux on CentOS 7.

To disable SELinux security features, open the /etc/selinux/config file and set SELINUX=disabled:

Step 3. Installing Asterisk on CentOS 7.

First, download the latest version of Asterisk:

Once the asterisk archive is extracted, change to the asterisk-15.5.0 directory with the following command:

Next, install Asterisk dependencies:

The script will install all necessary packages and upon successful completion, it will print the following message:

Then, install Asterisk using following command:

Upon successful completion, you will see the following output:

The next step is to select the modules you want to compile and install, most of the modules are already enabled. Access the Menuselect system, by typing:

Now that the configuration is completed start the compilation process using the make command:

Once the build process is completed, you will be presented with the following message:

As the message above says, the next step is to install Asterisk and its modules by typing:

Once the installation is finished the script will display the following message:

Run the make samples command to install the Asterisk sample configuration files:

The last step is to enable Asterisk service to start on boot with:

Congratulation’s! You have successfully installed Asterisk. Thanks for using this tutorial for installing Asterisk on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Asterisk web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!