Saturday, 1 June 2013

Installation of Asterisk-11 on Ubuntu 12.10

Asterisk An Introduction:  
                     Asterisk is a free and open source workbench to design your own communication applications over the internet or on your personal local area network. Basically asterisk uses basic concepts of IP telephony and also few open source protocols like SIP , IAX etc to establish communication sessions. Asterisk is sponsored by Digium inc. A privately held communication technology company. Asterisk is a free soft switch which can convert your personal computer into a soft exchange (PBX), your computer as a soft exchange will register peers and will also forward call to other peers and gateways. You can also host an IVR (Integrated Voice Response) on your computer for any extensions, as asterisk can also support media. for more details on asterisk you can visit following links:

                            http://www.asterisk.org
                             http://wiki.asterisk.org
                             www.voip-info.org/wiki/view/Asterisk
                     

Asterisk 11 Installation:
                          I  am considering that you have installed Ubuntu 12.10 and your machine is ready to install asterisk now. Before installing asterisk 11 we first have to install all the dependencies needed.
We will install all the building and compiling tools for the installation of asterisk.

#sudo apt-get install build-essential


if you get an error "build-essential has no installation candidate" then please update your repositories file /etc/apt/sources.list.


#vim /etc/apt/sources.list

Add following repositories in it.



deb http://archive.ubuntu.com/ubuntu quantal universe multiverse
deb-src http://archive.ubuntu.com/ubuntu quantal universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ quantal main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ quantal main restricted

deb http://gb.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ quantal-updates main restricted

deb http://gb.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ quantal universe
deb http://gb.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ quantal-updates universe

deb http://gb.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu quantal partner
deb-src http://archive.canonical.com/ubuntu quantal partner

deb http://security.ubuntu.com/ubuntu quantal-security main restricted
deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse

deb http://packages.medibuntu.org/ quantal free non-free
deb-src http://packages.medibuntu.org/ quantal free non-free

deb http://dl.google.com/linux/deb/ stable non-free

Now install following dependencies:

#sudo apt-get install libxml2-dev ncurses-dev libmysqlclient15-dev sqlite3 tar wget

Download source code of Asterisk 11. 


#cd /usr/src/

#wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.0.0.tar.gz
#tar -zxvf asterisk-11.0.0.tar.gz

Now compile and install Asterisk 11:


#cd asterisk-11.0.0

#./configure
#make
#make install
#make samples

After Installation you can start asterisk:


#asterisk


If you want to go to asterisk CLI then type the following command.


#asterisk -r



Now use asterisk and make your own free exchange.