Installation of Asterisk for Ubuntu / Debian

Posted: 07/09/2008 in 1

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

 

http://www.asterisk.org

 

Distros selection for linux

 

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

 

Distros available at there respective sites

 

http://www.ubuntu.com

 

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 http://ftp.digium.com/pub/asterisk/asterisk-1.2.4.tar.gz

wget http://ftp.digium.com/pub/zaptel/zaptel-1.2-current.tar.gz

wget http://ftp.digium.com/pub/libpri/libpri-1.2-current.tar.gz

wget http://ftp.digium.com/pub/libiax/iax-0.2.2.tar.gz

wget http://ftp.digium.com/pub/asterisk/asterisk-1.2-current.tar.gz

wget http://ftp.digium.com/pub/asterisk/asterisk-addons-1.2-current.tar. gz

 

tar xvfz libpri-1.2-current.tar.gz

cd libpri-1.2.3/

make clean

make

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

ztcfg

 

cd ..

tar xvfz asterisk-1.2-current.tar.gz

cd asterisk-1.2.11/

make

make install

make samples

 

 

wget http://ftp.digium.com/pub/asterisk/g729/linux/32-bit/i386/codec_g72 9a.so

wget http://ftp.digium.com/pub/asterisk/g729/register_utility/glibc2.3.5 /x86/register

wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.t ar.gz

 

 

cd ..

tar xvfz asterisk-sounds-1.2.1.tar.gz

cd asterisk-sounds-1.2.1

make clean

make install

 

cd..

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

About these ads

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s