asterisk 1.4 installation with libpri and DAHDI

asterisk 1.4 installation with libpri and DAHDI

Update the system before start installation and reboot the system.

yum -y update

 

Install MySQL

yum -y install mysql-server
/etc/init.d/mysqld start
chkconfig mysqld on

Install Pre-Install Packages

yum -y install kernel-devel make bison flex gcc-c++ gcc httpd php php-cli php-mysql php-pear php-gd curl sox ncurses-devel openssl-devel mysql-devel gtk2-devel

Download and Install libpri

wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz
tar xfv libpri-1.4-current.tar.gz
cd `find . -name “libpri-1.4.*” -print`
make; make install;

Download and install DAHDI

You’re pretty much going to need DAHDI. If not for any hardware then for the dummy timer anyway. Note that the stock CentOS kernels come with a 1000HZ timer and so don’t need recompiling (phew!). Replace ‘VERSION’ with the correct details.

cd /usr/src/asterisk/dahdi-linux-complete-VERSION
make all
make install
make config

Edit /etc/dahdi/modules, /etc/dahdi/system.conf and /etc/asterisk/chan_dahdi.conf for your site.
Set DAHDI to start automatically and then start it.

chkconfig dahdi on
service dahdi start

Download and install Asterisk 1.4

wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
tar xfvz asterisk-1.4-current.tar.gz
cd `find . -name “asterisk-1.4.*” -print`
./configure; make; make install; make samples;

 

Download and install asterisk 1.4 add ons

wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz
tar xfvz asterisk-addons-1.4-current.tar.gz
cd `find . -name “asterisk-addons-1.4.*” -print`
./configure; make; make install; make samples;