Professional Documents
Culture Documents
More Information On Asterisk Dependencies
More Information On Asterisk Dependencies
yum update -y
Disable SELinux by changing enforcing to disabled in /etc/selinux/config. Use a text editor or copy and paste this command.
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
Next, you will want to resolve basic dependencies. (More information on Asterisk dependencies.)
yum install -y make wget openssl-devel ncurses-devel gcc-c++ sqlite-devel libuuid-devel newt-devel libxml2-devel kernel-devel gcc
Download the source tarballs. These commands will get the current release of DAHDI 2.6, libpri 1.4 and Asterisk 11.
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-completecurrent.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
For the next set of commands it is important to follow the proper order: DAHDI first, then libpri, then Asterisk. Install DAHDI.
cd /usr/src/dahdi-linux-complete* make && make install && make config
Install libpri.
cd /usr/src/libpri* make && make install
In the next step, running the configure script will vary depending on whether your system is 32-bit or 64-bit. (Watch the video for more details.) When the menuselect command runs, select your options, then choose Save and Exit and the install will continue. Use this command if you are installing Asterisk on 32bit CentOS.
./configure && make menuselect && make && make install
Optional: If you ran into errors you will want to clean the install directory before recompiling.
make clean && make distclean
Once you have an error-free install, copy the sample files from the configs subdirectory into /etc/asterisk.
make samples
Start DAHDI.
service dahdi start
Start Asterisk.
service asterisk start