Install Asterisk 1.8 from source on Ubuntu 12.04

by kartook on August 16, 2012

Sponsored Links

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.

Kartook - who has written 769 posts on Technical Notes Tweaks.

Follow him on Twitter @kartook and on Google+

Previous post:

Next post:

{ 2 comments… read them below or add one }

UncleJoda October 9, 2012 at 5:35 pm

tar -zxvf dahdi-linux-complete-2.6.1+2.6.1.tar.gz
cd dahdi-linux-complete-2.6.1+2.6.1/


Francisco October 24, 2012 at 1:36 am

root@Asterisk:/home/fmiranda# asterisk -r
Instrucción ilegal (`core’ generado)


Leave a Comment