LinuxMoz

Linux Stuff && Coffee

Ubuntu Asterisk 10 Install Guide

| Comments

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

Here is a video of the install if you would rather watch.

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.

1
aptitude update && aptitude dist-upgrade

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

1
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

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

Download Asterisk 10 and DAHDI tools

1
2
wget https://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-10.0.0.tar.gz &&
wget https://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

1
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:

1
cd dahdi-linux-complete-2.6.0+2.6.0/

Build DAHDI Tools with the following commands:

1
2
3
make all
make install
make config

Start the DAHDI Tools service with:

1
/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:

1
cd asterisk-10.0.0/

Build Asterisk 10 with:

1
2
make clean
./configure

Configure your Asterisk options and build with:

1
2
3
make menuselect
make
make install

Make Asterisk samples:

1
2
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:

1
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.

Comments