Upgrade 3CX to v18 and get it hosted free!

CentOS 5 and Asterisk 1.4.x installation

Author image

Base Install of Asterisk on a CentOS/RHEL box:

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

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

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

now you’re finish installing asterisk.

See Also


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.