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.

Google Crux

What is Google CrUX (Chrome User Experience Report)

Google CrUX is a powerful dataset by Google that provides real user experience data for websites, helping…

How to Fix the Magento 503 Temporarily Unavailable Error

When your server is functioning properly but is now unable to manage a request, it…

How to Create Global Email Filters using cPanel

This guide explains how to create a Global email filter in cPanel. Setting a Global…