Installing CentOS for Asterisk this is Based on CentOS 4.1 for i386
Required packages
- Minimal install
- kernel-devel / kernel-smp-devel
- bison
- openssl-devel
or mysql support
- mysql
- mysq-server
- mysql-devel
Installation process
Select minimal from the Package Group selector option (on Centos 4.1 this required just disk1 for my hardware - HP DL360 - G4)
When the installation completes, install the YUM GPG Key
Now simply install the required packages using yum
- yum -y install kernel-devel bison openssl-devel
or to include mysql:
- yum -y install kernel-devel bison openssl-devel mysql mysql-server mysql-devel
If you run an SMP kernel, you need kernel-smp-devel instead of kernel-devel above.
Now go make yourself a cup of tea/coffee as this will take a while, depending on your connection speed (it will download and install all dependencies and packages required)
Then:
- yum -y update
Another cup of coffee, and a reboot to ensure that you compile against the correct kernel.
Once installed, standard asterisk installation procedure applies.
Installing Asterisk on to CentOS 4.x
Quick and Easy Install Guide, continuing from above section.
*** If you are running an SMP kernel, then instead of “kernel-devel” use “kernel-smp-devel”***
*** MySQL is optional, MenuSelect requires ‘ncurses-devel’ if you want to set extra options. ***
Install prereqs:
yum -y update
yum -y install gcc gcc-c++ libtermcap-devel kernel-devel bison openssl-devel mysql mysql-server mysql-devel#installing/upgrading asterisk
#clean modules - just in case this is an upgrade.
rm -f /usr/lib/asterisk/modules/*
Go fetch latest asterisk sources.
/usr/src
rm asterisk
wget http://ftp.digium.com/pub/asterisk/asterisk-1.4.4.tar.gz
tar -zxvf asterisk-1.4.4.tar.gz
ln -s asterisk-1.4.4 asteriskrm -f zaptel
wget http://ftp.digium.com/pub/zaptel/zaptel-1.4.2.1.tar.gz
tar -zxvf zaptel-1.4.2.1.tar.gz
ln -s zaptel-1.4.2.1 zaptelrm -f libpri
wget http://ftp.digium.com/pub/libpri/libpri-1.4.0.tar.gz
tar -zxvf libpri-1.4.0.tar.gz
mv libpri-1.4.0 libprirm -f asterisk-addons
wget http://ftp.digium.com/pub/asterisk/asteris…ns-1.4.1.tar.gz
tar -zxvf asterisk-addons-1.4.1.tar.gz
mv asterisk-addons-1.4.1 asterisk-addons
Should be run before building asterisk:
NOTE: You may need to reboot if you see errors about missing kernel sources
cd /usr/src/zaptel
./configure
# make menuselect
make install
make config
Optional: If you have Zaptel digital cards:
cd ../libpri
make clean
make install
Must be installed after zaptel and (if you need it) libpri:
cd ../asterisk
./configure
# make menuselect # for extra configuration
make
make install
make samples
make config
Optional. Should be run after installing Asterisk:
cd ../asterisk-addons
./configure
make
make install
Note :
I am just in learning stage if any one find any mistake. Kindly let me know I will learn and grow my knowledge







