Friday, June 6, 2008

Installation of Asterisk for Ubuntu / Debian

Asterisk is the world's leading open source PBXi, telephony engine, and telephony applications toolkit. Offering flexibility unheard of in the world of proprietary communications, Asterisk empowers developers and integrators to create advanced communication solutions...for free.

official asterisk website

Distros selection for linux

Ubuntu / Fedora / Debian / Gentoo / CentOs are considered to be the best linux flavours .

Distros available at there respective sites

Installation :

First step is to install all the dependencies

Installation Commands for Ubuntu / Debian Sarge and Etch :

cd /usr/src

apt-get update
apt-get install kernel-headers-2.6.8-2-386

apt-get install cvs
apt-get install libssl-dev
apt-get install zlib1g-dev
apt-get install libnewt-dev
apt-get install bison
apt-get install ncurses-dev
apt-get install libssl-dev
apt-get install initrd-tools
apt-get install procps

mkdir asterisk
cd asterisk

wget gz

tar xvfz libpri-1.2-current.tar.gz
cd libpri-1.2.3/
make clean
make install

cd ..
tar xvfz zaptel-1.2-current.tar.gz
cd zaptel-1.2.8/
make clean
make linux26)
make install
modprobe zaptel
modprobe wcfxo

cd ..
tar xvfz asterisk-1.2-current.tar.gz
cd asterisk-1.2.11/
make install
make samples

wget /x86/register
wget ar.gz

cd ..
tar xvfz asterisk-sounds-1.2.1.tar.gz
cd asterisk-sounds-1.2.1
make clean
make install

modprobe ztdummy

From Asterisk TFOT
Let’s look at some examples. To start Asterisk and connect to the CLI with a verbos-
ity level of 3, use the following command:

# /usr/sbin/asterisk –cvvv
If the Asterisk process is already running (for example, if you started Asterisk with
/usr/sbin/asterisk), instead use the reconnect switch, like so:

# /usr/sbin/asterisk –vvvr

Part - 2 would be updated shortly