Asterisk Ubuntu

Ubuntu Asterisk 10 Install Guide

by kjs on February 20, 2012

How to install Asterisk on Ubuntu walking you through the process of installing Asterisk 10 on Ubuntu 10.04 LTS.

Asterisk is an Enterprise level VoIP PBX telephone system that has many configuration options and can use a wide range of hardware, this guide will walk you through the process of installing Asterisk on Ubuntu 10.04 LTS, which is often a daunting task for Linux Admins.

Specifically this guide will show you how to install Asterisk 10 on Ubuntu LTS 10.04, this guide is a copy and paste tutorial.

Ubuntu Asterisk 10 Install Guide

To start off with make sure that Ubuntu is up to date.

aptitude update && aptitude dist-upgrade

Install deps and build tools so that we can compile Asterisk 10 on Ubuntu

sudo aptitude install -y build-essential linux-headers-`uname -r` libxml2-dev ncurses-dev libsqlite3-dev sqlite3

Create a directory to build Asterisk and change directory

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

Download Asterisk 10 and DAHDI tools

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-10.0.0.tar.gz &&
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.0+2.6.0.tar.gz

Extract the tar archives for Asterisk 10 and DAHDI Tools

tar -xvzf asterisk-10.0.0.tar.gz && tar -xvzf dahdi-linux-complete-2.6.0+2.6.0.tar.gz

Build DAHDI Tools on Ubuntu LTS

It is important to build DAHDI tools before we build Asterisk 10

First we must enter the DAHDI directory:

cd dahdi-linux-complete-2.6.0+2.6.0/

Build DAHDI Tools with the following commands:

make all
make install
make config

Start the DAHDI Tools service with:

/etc/init.d/dahdi start

Build / Compile Asterisk 10 on Ubuntu LTS

Next it’s time to build Asterisk 10, change to your Asterisk 10 directory:

cd asterisk-10.0.0/

Build Asterisk 10 with:

make clean
./configure

Configure your Asterisk options and build with:

make menuselect
make
make install

Make Asterisk samples:

make samples
make config

Ubuntu Asterisk 10 samples get installed into /etc/asterisk only make samples it you are upgrading Asterisk, if you already have an Asterisk install on Ubuntu then skip this step or it will overwrite your config files.

Start Asterisk with:

asterisk -vvvvvvc

That’s it you should now have a working Ubuntu Asterisk 10 install running on Ubuntu 10.04 LTS, now it’s time to setup your phones and outbound SIP trunks.


Previous post:

Next post: