CentOS 5 and Asterisk 1.4.x installation

posted in: Asterisk | 0

Before you begin, you’ll probably want to bring all your packages up to date. To do so, run ‹yum -y update›. If any kernel files were updated as part of this process, you will need to reboot the machine (shutdown -r now). Repeat the process until no more updates are available.

 

Download the pre-requisite of asterisk:

 

gcc

gcc-c++

kernel-devel

bison

openssl-devel

libtermcap-devel

libxml2-devel

 

We’ll be using yum for now(there’s no support for apt-get in CentOS 5)

 

yum -y update

yum install gcc gcc-c++ kernel-devel bison openssl-devel libtermcap-devel libxml2-devel

 

yum install festival

 

then download the latest asterisk version at asterisk.org to /usr/src:

 

cd /usr/src

 

wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz

wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz

 

 

#if you plan to use PRI cards(eg. TE110P, TE406P) you need to download this package:

 

 

wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz

 

 

then untar all the files

 

tar -zxf zaptel-1.4-current.tar.gz

tar -zxf asterisk-1.4-current.tar.gz

tar -zxf libpri-1.4-current.tar.gz

 

 

### INSTALLING ZAPTEL ###

 

cd /usr/src/zaptel

 

make clean

make

make install

 

#If you want «service zaptel restart» command to work do this

make config

 

 

### INSTALL LIBPRI ###

# If you are using E1 cards you need to install LIBPRI

 

cd /usr/src/libpri

 

make clean

make

make install

 

 

### INSTALLING ASTERISK ###

 

cd /usr/src/asterisk

 

./configure

make

make install

 

#If you want sample files to be created in /etc/asterisk

make samples

 

#If you want program docs/manual pages for asterisk

make progdocs

 

#If you want «service asterisk restart» command to work do this

make config