Thursday, September 19, 2013

Asterisk 11 Installation From Source


Minimum Requirements For Asterisk 11:-

apt-get install build-essential libssl-dev ncurses-dev libnewt-dev zlib1g-dev bison sqlite3 libsqlite3-dev nano automake




Asterisk 11 Install From Source:-

1) cd /usr/src
2) wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
3) tar -zxvf asterisk-11-current.tar.gz
4) cd asterisk-*
5) ./configure --disable-xmldoc
6) make menuselect
7) make
8) make install
9) make samples

Prepare Asterisk To Use As A Startup:-

1) cd /usr/src/asterisk-*
2) cp contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk
3) nano /etc/init.d/asterisk
4) Edit file text:-

    ## DAEMON=__ASTERISK_SBIN_DIR__/asterisk
    DAEMON=/usr/sbin/asterisk
    ## ASTVARRUNDIR=__ASTERISK_VARRUN_DIR__
    ASTVARRUNDIR=/var/run/asterisk/
    ## ASTETCDIR=__ASTERISK_ETC_DIR__
    ASTETCDIR=/etc/asterisk/ 

5) Then Ctrl+x for save
6) update-rc.d asterisk defaults
7) service asterisk start