Installing Asterisk from source code on debian ubuntu 12.04/14.04
Frist of all, Install the Dependencies:
libssl-dev (required in order to install Asterisk with chan_sip available)
Install above dependencies with the following command
sudo apt-get install build-essential ncurses-dev libxml2-dev libsqlite3-dev libssl-dev uuid-dev libjansson-dev
Download & Install the Asterisk 13:
Download the latest stable version of Asterisk using wget.
Then Extract the Downloaded file.
tar -zxvf asterisk-13*
After extracting the Asterisk, Go to extracted asterisk folder, This is the root folder for our asterisk server, Then Run the below command to configure the asterisk.
If everything went well you will see one ASCII Art of Asterisk symbol like this.
Now compile the asterisk server using following command.
To run the asterisk on startup, and to generate init script run the following command
Now asterisk is Installed on your system
You can control the asterisk using init script or using service command like below
service asterisk start (or)
service asterisk restart (or)
service asterisk stop (or)
Now restart the Asterisk server
Check if the Asterisk is running or not using the following command.
ps -ef | grep asterisk
Connect to Asterisk Command line Interface (CLI) using following command
Congratulations! you are successfully Installed Asterisk Communication Engine on your linux box. Go ahead and change necessary configuration files and try to make a test call between two endpoints.