Showing posts with label asterisk 11 installation. Show all posts
Showing posts with label asterisk 11 installation. Show all posts

Thursday, November 7, 2013

How to Install Asterisk 11 on CentOS 6

Asterisk 11 installation on CentOS 6

yum update -y
Disable SELinux
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
reboot
yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel libuuid-devel
mkdir /usr/src/asterisk
cd /usr/src/asterisk
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.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
tar zxvf dahdi-linux-complete*
tar zxvf libpri*
tar zxvf asterisk*

 
Install DAHDI
 cd /usr/src/asterisk/dahdi-linux-complete*
make && make install && make config

 

Install libpri
cd /usr/src/asterisk/libpri*
make && make install


Install Asterisk
cd /usr/src/asterisk/asterisk
Use this command if you are installing Asterisk on 32bit CentOS
./configure && make menuselect && make && make install
Use this command if you are installing Asterisk on 64bit CentOS
./configure --libdir=/usr/lib64 && make menuselect && make && make install
make samples
make config
Start DAHDI.
Start Asterisk
service asterisk start
service dahdi start
Connect to the Asterisk CLI.
asterisk -rvvv