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.

How to Resolve MySQL High Memory Usage?

What is MySQL? MySQL is the most popular database used in web applications. It’s free,…

Creating Email IDs for an Additional Domain

If you’ve added a new domain to your hosting account, you may also want to…

Windows vs Linux VPS Hosting – Key Differences and Benefits

VPS is well known as a virtual private server. VPS has a server-splitting process. Each…