How to Download and Compile Asterisk on CentOS

In order to download the source, visit http://www.downloads.digium.com/pub/telephony/asterisk/ and select one of the tar.gz links (http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.2-cert2.tar.gz for example)

 

In a terminal, change to the /usr/src directory then download the Asterisk tarball (copied .tar.gz link)

  1. cd /usr/src

  2. wget http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.2-cert2.tar.gz

After this is done, extract the tar file.

  1. tar -zxvf certified-asterisk-11.2-cert2.tar.gz

Change to the Asterisk source directory

  1. cd certified-asterisk-11.2-cert2/

Lastly, compile Asterisk

  1. ./configure

  2. make menuselect

  3. make

  4. make install

  5. make samples (this installs a set of sample config files and is optional)

  6. make config

Please note that if you have a Digium card or need Asterisk to work with DAHDI you need to install DAHDI first. 

 

Return to Documentation Home I Return to Sangoma Support