Asterisk – VOIP Server Installation on Linux – centOS

Before installation, ensure all packages are up-to-date. Run yum update. If any kernel files are updated, a server reboot will be required. Next, download the prerequisites or essentials for Asterisk:

gcc
kernel-devel
bison
openssl-devel
doxygen #

In case you have a Dual Core Processor Server, Kernel-smp-devel is required through

apt-get update
apt-get install gcc kernel-devel bison openssl-devel

Or through yum

yum -y update
yum install gcc kernel-devel bison openssl-devel

Donwnload the latest version through asterisk website to /usr/src

In case you are using PRI cards, you need to the following :

wget http://ftp.digium.com/pub/libpri/releases/libpri-<version>.tar.gz

Untar the files :

tar -zxf zaptel-<version>.tar.gz
tar -zxf asterisk-<version>.tar.gz
tar -zxf libpri-<version>.tar.gz

Installation of Zaptel :

cd /usr/src/zaptel

make clean
make
make install

Restart Zaptel Service

Installation of LIBRI :

In case you are using E1 Cards, install LIBRI :

cd /usr/src/libpri

make clean
make
make install

Asterisk Installation :

cd /usr/src/asterisk

make mpg123 #
make clean
make
make install

If kernel is used, edit spinlock.h or Zaptel will not compile :

vi /usr/src/kernels/2.6.9-34.EL-x86_64/include/linux/spinlock.h

In Text Editor : define DEFINE_RWLOCK(x) rw_lock_t x = RW_LOCK_UNLOCKED
and change to define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

Cloud Disaster Recovery for Small & Medium Businesses

Recovering from a disaster that hits your online business can be extremely difficult. In many…

How to Clear Cache for All Major Browsers

Here are guidelines on how to clear your cache in the following browsers: Firefox :…

Steps To Add Your Credit Card To Your PayPal Account

This tutorial assumes you are already logged in to PayPal. Click on the profile link.…