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)
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.2-cert2.tar.gz
After this is done, extract the tar file.
tar -zxvf certified-asterisk-11.2-cert2.tar.gz
Change to the Asterisk source directory
cd certified-asterisk-11.2-cert2/
Lastly, compile Asterisk
./configure
make menuselect
make
make install
make samples (this installs a set of sample config files and is optional)
make config
Please note that if you have a Digium card or need Asterisk to work with DAHDI you need to install DAHDI first.Â
Â