How to install Asterisk from source


Here I am going to explain the steps to install asterisk from the source files

What we are going to install here is the following

  1. Asterisk version
  2. Asterisk Addons version

Please note that these are the latest stable version in 1.6 series while writing this article.

We are also going to install the following for jabber/gtalk and php/mysql support

  1. iksemel-1.4
  2. PHP 5 with mysql support

Install Dependencies

[code lang=php]

yum -y install gcc gcc-c++ libxml2-devel ncurses-devel  mysql mysql-devel mysql-server  php php-mysql php-devel openssl openssl-devel
tar -zxf iksemel-1.4.tar.gz
cd iksemel-1.4
make install
cd /usr/local/lib
cp * /usr/lib

Install Asterisk


tar -zxf asterisk-1.6.2-current.tar.gz
cd cd asterisk-1*
make && make install


Install Asterisk Addons


tar -zxf asterisk-addons-1.6.2-current.tar.gz
cd asterisk-addons-*
make && make install
chkconfig asterisk on


Congratulations! We have successfully installed asterisk !

To run asterisk for the first time , type “asterisk”

To see the console, type “asterisk -rvvvv”

Leave a Reply

Your email address will not be published.