How to install Asterisk on CentOS

In this installment of our How To, we are going to go over on the topic of how to install Asterisk on CentOS. For this we are going to use Asterisk 13 and CentOS 7 minimal version. But, instructions will mostly be similar to other versions of Asterisk and CentOS.

As a first step you need to download latest asterisk on to your machine. For this you need wget tool. As we are using minimal flavor of CentOS even wget tool is not available on fresh install. Run the following command to install wget.

yum install wget

Once, wget is installed successfully, run the following command to download asterisk.

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz

Extract downloaded asterisk tar ball

tar -zxvf asterisk-13-current.tar.gz
cd asterisk-13.6.0

Install the following dependencies

yum install gcc
yum install gcc-c++
yum install ncurses-devel
yum install uuid-devel libuuid-devel
yum install jansson-devel
yum install libxml2-devel
yum install sqlite-devel

Once, all the above dependencies are installed. You can now run the following command to enable or disable modules of your choice.

make menuselect

After you are done with the menuselect screen, run the following command to compile and install asterisk

make
make install
make samples

That’s it now you have asterisk installed successfully on your you machine. Run, the following command to start asterisk

asterisk -vvvvgc

Now, you should see asterisk console saying “Asterisk Ready”. Instead, if you encounter the following error

/usr/bin/asterisk: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: no such file or directory.

Don’t worry, just run the following command and start asterisk again after that.

ldconfig

 

8 thoughts on “How to install Asterisk on CentOS

  1. Warning: Attempt to read property "entry" on string in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Trying to access array offset on value of type null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Attempt to read property "displayName" on null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 191
    EbDev says:

    Should note that after install all dependencies, You should go into the asterisks folder directory.

  2. Warning: Attempt to read property "entry" on string in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Trying to access array offset on value of type null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Attempt to read property "displayName" on null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 191
    EbDev says:

    disregard last comment. I can’t read.

  3. Warning: Attempt to read property "entry" on string in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Trying to access array offset on value of type null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Attempt to read property "displayName" on null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 191
    juan jose says:

    I think it’ s missing “./configure” ¿?

  4. Warning: Attempt to read property "entry" on string in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Trying to access array offset on value of type null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 190 Warning: Attempt to read property "displayName" on null in /var/app/current/wp-content/plugins/jetpack/modules/gravatar-hovercards.php on line 191
    Marcos R Santos says:

    I used ./cofigure and my system it’s OK

Leave a Reply

Your email address will not be published. Required fields are marked *