How to Install Asterisk on
Ubuntu
//Ubuntu
Version: 13.10
Login: root
Password: ******
#sudo apt-get update
#sudo apt-get upgrade
=== install asterisk on ubuntu == dependency ==
#sudo apt-get install
build-essential
wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname
-r) libsqlite3-dev uuid-dev
Wget http://www.digip.org/jansson/releases/jansson-2.4.tar.gz
# tar -zxf jansson-2.4.tar.gz
# cd jansson-2.4/
# ./configure
# make clean &&
# make &&
# make install
sudo apt-get install libtiff4
sudo ln -s /usr/local/src/jansson-2.5/src/.libs/libjansson.so.4 /usr/lib/libjansson.so.4
// Some optional requirements //
sudo apt-get update
sudo apt-cache search libxml
sudo apt-cache search libxml | grep dev
sudo apt-get install libxml2-dev
sudo apt-get install libncurses5-dev
#cd /usr/local/src/
//
http://downloads.asterisk.org/pub/telephony/
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
tar zxvf dahdi-linux-complete*
tar zxvf libpri*
tar zxvf asterisk*
== Install DAHDI ==
cd /usr/src/dahdi-linux-complete*
# make
# make install
# make config
== Install libpri ==
# cd /usr/src/libpri*
# make
# make install
== Install
Asterisk ==
cd /usr/src/asterisk*
# ./configure
# make menuselect
# make
# make install
# make config
# make samples
Start DAHDI
/etc/init.d/dahdi
start
Start Asterisk and connect to the
CLI
/etc/init.d/asterisk
start
asterisk
-rvvv
Verify your installation by checking
for the DAHDI and libpri versions on the Asterisk CLI
bashar-desktop*CLI>
?
! acl ael agent agi aoc ari bridge calendar cc
cdr cel channel cli confbridge config console core dahdi data
database devstate dialplan dnsmgr dundi fax features file group
hangup
help http iax2 indication keys
local logger manager minivm mixmonitor
module moh no originate parking phoneprov presencestate pri
queue realtime
reload rtcp rtp say sip skinny stun timing transcoder udptl
ulimit unistim voicemail xmldoc
bashar-desktop*CLI> dahdi show version
DAHDI Version: 2.7.0.1 Echo Canceller:
bashar-desktop*CLI> pri show version
libpri version: 1.4.14