Saturday, November 6, 2010

Asterisk 1.6.2.9 Quick Install Guide

We will follow following steps in order to install asterisk.

Installing DependenciesDownloading Source CodeCompilation and Installation

Installing Dependencies

Now there are many packages required for installation but since it is a quick install guide ill assume that you went on with default packages during OS isntallation.

For Debian

#sudo apt-get install libxml2-dev ncurses-dev libmysqlclient15-dev  g++

For CentOS

#yum install libxml2-devel ncurses-devel mysql-devel gcc gcc-c++

Downloading Source Code

#cd /usr/src/
#wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.9.tar.gz
#tar -xzf asterisk-1.6.2.9.tar.gz
#mv asterisk-1.6.2.9.tar.gz asterisk
#rm asterisk-1.6.2.9.tar.gz
#wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-1.6.2.1.tar.gz
#tar -xzf asterisk-addons-1.6.2.1.tar.gz
#mv asterisk-addons-1.6.2.1.tar.gz asterisk-addons
#rm asterisk-addons-1.6.2.1.tar.gz

Compilation & Installation

#cd /usr/src/asterisk/
#./configure
#make
#make install

#make samples

#cd /usr/src/asterisk-addons/
#./configure
#make
#make install
#make samples

And thats about it now you can run asterisk by simpally

#asterisk

or to start directly into cli

#asterisk -c

to connect to running asterisk process

#asterisk -r

No comments:

Post a Comment