Asterisk Install on Debian: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
|||
Line 87: | Line 87: | ||
<pre> | <pre> | ||
cd /usr/src | cd /usr/src | ||
wget http://asterisk.hosting.lv/src/asterisk-g72x-1.4. | wget http://asterisk.hosting.lv/src/asterisk-g72x-1.4.2.tar.bz2 | ||
tar xjf asterisk-g72x-1.4. | tar xjf asterisk-g72x-1.4.2.tar.bz2 | ||
rm -f asterisk-g72x-1.4. | rm -f asterisk-g72x-1.4.2.tar.bz2 | ||
cd asterisk-g72x-1.4. | cd asterisk-g72x-1.4.2 | ||
./autogen.sh | ./autogen.sh | ||
./configure CFLAGS='-march=armv6' --with- | ./configure CFLAGS='-march=armv6' --with-asterisk150 --with-bcg729 --with-asterisk-includes=../asterisk-15.0.0/include | ||
make | make | ||
make install | make install |
Revision as of 09:02, 19 October 2017
To install Asterisk on a Rapsberry Pi or Debian based system.
Dependencies
cd /usr/src wget http://www.libsdl.org/release/SDL2-2.0.5.tar.gz tar xvf SDL2-2.0.5.tar.gz rm -f SDL2-2.0.5.tar.gz cd SDL2-2.0.5 ./configure make make install
cd /usr/src/ wget http://www.digip.org/jansson/releases/jansson-2.10.tar.gz tar xvf jansson-2.10.tar.gz rm -f jansson-2.10.tar.gz cd jansson-2.10 ./configure make make install make check
Faxing
Only do this section if you want faxing support using spandsp
apt-get -y install libtiff5-dev echo /usr/local/lib/ >> /etc/ld.so.conf
cd /usr/src wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6.tar.gz tar xvf spandsp-0.0.6.tar.gz rm -f spandsp-0.0.6.tar.gz cd spandsp-0.0.6 ./configure make make install ldconfig
Asterisk Prerequisite
apt-get -y install subversion libspeexdsp-dev unixodbc-dev libmariadbclient-dev-compat libnewt-dev libncurses5-dev uuid-dev libxml2-dev libsqlite3-dev libssl-dev portaudio19-dev
Install Asterisk
cd /usr/src wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz tar xvf asterisk-13-current.tar.gz rm -f asterisk-13-current.tar.gz cd asterisk-13.17.2 ./configure --with-pjproject-bundled ./contrib/scripts/get_mp3_source.sh make menuselect make make install make config make samples
g729 Install
Install BCG729
cd /usr/src wget http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/bcg729-1.0.2.tar.gz tar xzf bcg729-1.0.2.tar.gz rm -f bcg729-1.0.2.tar.gz cd bcg729-1.0.2 ./configure make make install
You will need this dependency if it is not already installed.
apt-get -y install dh-autoreconf
Install the Asterisk g729 codec.
cd /usr/src wget http://asterisk.hosting.lv/src/asterisk-g72x-1.4.2.tar.bz2 tar xjf asterisk-g72x-1.4.2.tar.bz2 rm -f asterisk-g72x-1.4.2.tar.bz2 cd asterisk-g72x-1.4.2 ./autogen.sh ./configure CFLAGS='-march=armv6' --with-asterisk150 --with-bcg729 --with-asterisk-includes=../asterisk-15.0.0/include make make install
Debian Cleanup
apt-get -y autoclean apt-get -y autoremove