Installing Asterisk ( An open source telephony engine)

Posted by Mehroz Ashraf | Posted in , , , | Posted on 2:26 AM


In this article, we have given you the steps for installing Asterisk in your Linux Machine.

1) Create a new directory "asterisk" under your default source files path,
# mkdir /usr/src/asterisk

2)Inside "asterisk" folder, you need to download or copy asterisk source file for compilation.
# cd /usr/src/asrerisk
# wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.4.tar.gz

(You can download older versions of asterisk from asterisk.org | Make sure you are connected with internet)

3) The .tar file must be untar (unzip) in order to execute the source file/
# tar zxvf asterisk-1.8.4.tar.gz

Before installing asterisk, you need to run several dependencies through YUM command or by RPM package, to execute the asterisk installer
Examples:
#yum install gcc
#yum install gcc-c++
#yum install glibc
#yum install glibc-devel
#yum install ncurses
#yum install ncurses-devel
#yum install openssl
#yum install openssl-devel
#yum install zlib
#yum install zlib-devel
#yum install bison
#yum install kernel-devel

( if you have missed any dependencies, You need not to worry as asterisk scripts on compiling-step4, generates error with the name of the dependencies required, and you can again do a "yum install DEPENDENCY" to get all the required material.

4) After Installing dependencies, run
# ./configure 
(This step checks the libraries and dependencies required for compiling | Install missing dependencies at this point, if required)

5) #make menuselect 
(This step is optional , it is needed to select the specific modules)


6) Final commands assuming the built complete successfully.
# make
# make install
# make samples

Then run asterisk service

# asterisk -vvvc

You will Enter in the CLI mode of asterisk after the above command.

Comments (0)

Post a Comment