Asterisk Install

From KlavoWiki
Jump to: navigation, search

Online book

Asterisk™: The Definitive Guide

Check List

Check the Asterisk Check List as a guide for all required product installation.


Make sure all your prerequisites are installed.

yum -y install make wget openssl-devel ncurses-devel subversion newt newt-static newt_devel libxml2-devel kernel-devel gcc gcc-c++ mysql sqlite-devel uuid-devel libuuid-devel speex-devel

For Asterisk 12 and 13

cd /usr/src/
tar xvf jansson-2.7.tar.gz
rm -f jansson-2.7.tar.gz
cd jansson-2.7

make install
make check

Note: The following command relies on rpmforge being installed for uriparser

yum -y install libuuid libxslt uriparser

Installing Asterisk

The First thing I did was to download the Asterisk source files.

Asterisk 11.x.0

I did not download and install the Libpri or DAHDi packages as I don't have any primary rate cards installed on my system and as I no longer use MeetMe witch is reliant on a timing device with DAHDi I now use ConfBridge so there are less Linux dependencies to install.

NOTE: If you would like to download, install and use the latest and greatest version of Asterisk (the cutting edge) download the files listed on the Asterisk SVN Install page. If you do download the SVN files don't download the files listed below.

mkdir /usr/src/asterisk
cd /usr/src/asterisk


DAHDI (stands for Digium Asterisk Hardware Device Interface) is the replacement for Zaptel. As I have an X100P card installed into my system I need to install the Linux driver. If you do not have any telecommunications cards installed you will still need to do the following so that ztdummy is installed. This is the timing device so that MeetMe and or ConfBridge functions correctly.

tar xvzf dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-2.7.0+2.7.0
make install
make config

Once the above is done we need to edit /etc/dahdi/modules and make sure that only the required dahdi module(s) is/are loaded. If you only want ztdummy install you need to remark out all the other drivers.


Install lipbri is you are connecting to a PRI service. With the later version of the libpri there is a dependency of dahdi to be installed.

tar xvzf libpri-1.4-current.tar.gz
cd libpri-1.4.14
make install


faxing prerequisites

If you would like to be able to use faxing capabilities with Asteirsk you need to install a few packages so that Asterisk can build the faxing components.

Execute the following line to add /usr/local/lib/ to /etc/

echo /usr/local/lib/ >> /etc/
yum -y install libtiff-devel

cd /usr/src
zcat spandsp-0.0.6pre21.tgz | tar xf -
cd spandsp-0.0.6
make install


cd /usr/src/asterisk
tar xvzf asterisk-11-current.tar.gz
cd asterisk-11.4.0
./configure --libdir=/usr/lib64
make menuselect
make install
make samples
make config


vi /etc/asterisk/asterisk.conf

Modify verbose= to suite your default verbosity level.


When you have finished the process on this page make sure you have a look at how to record your CDR to MySQL.