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

Compiler

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

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.1+2.6.1.tar.gz
tar -zxvf dahdi-linux-2.6.1.tar.gz
cd dahdi-linux-2.6.1*/
make
make install
cd ..

Download   Asterisk

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.15.0.tar.gz
tar -zxvf asterisk-1.8.15.0.tar.gz
cd asterisk-1.8.15.0/

Add Mp3 support

./contrib/scripts/get_mp3_source.sh
./configure

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 759 posts on My 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

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.1+2.6.1.tar.gz
tar -zxvf dahdi-linux-complete-2.6.1+2.6.1.tar.gz
cd dahdi-linux-complete-2.6.1+2.6.1/

Reply

Francisco October 24, 2012 at 1:36 am

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

Reply

Leave a Comment