Install Asterisk 1.8 from source on Ubuntu 12.04

Install Asterisk 1.8 from source on Ubuntu 12.04

New install updating the patches

apt-get update
apt-get upgrade

Verifying kernel headers are installed

apt-get install linux-headers-`uname -r`

Downloding a packages for building asterisk, dependencies, compilers, etc


apt-get install build-essential

sudo apt-get install libssl-dev

Required Dev file

apt-get install libxml2-dev

Termcap dev files

apt-get install libncurses5-dev libreadline-dev libreadline6-dev

For Google Talk requirements

apt-get install libiksemel-dev

For ogg Vorbis format support

apt-get install libvorbis-dev

Needed for SIP

apt-get install libssl-dev

For speex codec

apt-get install libspeex-dev libspeexdsp-dev

Few more addons

apt-get install mpg123 libmpg123-0 sox openssl wget subversion openssh-server

Switch into /usr/src director   build the source files

Download DAHDI pseudo timing source for MeetMe conferences

tar -zxvf dahdi-linux-2.6.1.tar.gz
cd dahdi-linux-2.6.1*/
make install
cd ..

Download   Asterisk

tar -zxvf asterisk-
cd asterisk-

Add Mp3 support


If everything works out, you should get the ascii art Asterisk logo


 asterisk components to be installed


make menuconfig


Build the binaries for asterisk

make && make install

copy the sample configs into /etc/asterisk

make samples

Copy the init startup scripts to make asterisk start on boot

make config



Now installation is Done.

2 thoughts on “Install Asterisk 1.8 from source on Ubuntu 12.04

Leave a Reply

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

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