Asterisk Install on Debian: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
 
(42 intermediate revisions by the same user not shown)
Line 2: Line 2:


= Dependencies =
= Dependencies =
<pre>
apt-get -y install libv4l-dev ffmpeg libx264-130
</pre>


<pre>
<pre>
cd /usr/src
cd /usr/src
wget http://www.libsdl.org/release/SDL2-2.0.3.tar.gz
wget http://www.libsdl.org/release/SDL2-2.0.9.tar.gz
tar xvf SDL2-2.0.3.tar.gz
tar xvf SDL2-2.0.9.tar.gz
rm -f SDL2-2.0.3.tar.gz
rm -f SDL2-2.0.9.tar.gz
cd SDL2-2.0.3
cd SDL2-2.0.9
./configure
./configure
make
make
Line 17: Line 14:
</pre>
</pre>


== Faxing ==
Only do this section if you want faxing support using spandsp
<pre>
<pre>
cd /usr/src
apt -y install libtiff5-dev libtiff-tools libspandsp-dev mime-construct
wget http://www.pjsip.org/release/2.4/pjproject-2.4.tar.bz2
echo /usr/local/lib/ >> /etc/ld.so.conf
tar xvf pjproject-2.4.tar.bz2
rm -f pjproject-2.4.tar.bz2
cd pjproject-2.4
./configure --enable-shared
make dep
make
make install
</pre>
</pre>


<pre>
<pre>
cd /usr/src/
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Bundle::LWP"
wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Proc::WaitStat"
tar xvf jansson-2.7.tar.gz
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install MIME::Types"
rm -f jansson-2.7.tar.gz
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install DBI'
cd jansson-2.7
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install DBD::mysql"
./configure
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install CGI::Util"
make
make install
make check
</pre>
</pre>


= Asterisk Prerequisite =
<pre>
<pre>
apt-get -y install libtiff5-dev
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 libedit-dev
echo /usr/local/lib/ >> /etc/ld.so.conf
</pre>
</pre>


= Install Asterisk =
<pre>
<pre>
cd /usr/src
cd /usr/src
wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6.tgz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
zcat spandsp-0.0.6.tgz | tar xf -
tar xvf asterisk-16-current.tar.gz
rm -f spandsp-0.0.6.tgz
rm -f asterisk-16-current.tar.gz
cd spandsp-0.0.6
cd asterisk-16.6.1
./configure
./configure --with-jansson-bundled --with-pjproject-bundled
./contrib/scripts/get_mp3_source.sh
make menuselect
make
make
make install
make install
ldconfig
make config
make samples
</pre>
</pre>


= Asterisk Prerequisite =
= g729 Install =
 
Install dependency
<pre>
<pre>
apt-get -y install subversion libspeexdsp-dev libmyodbc unixodbc-dev libmysqlclient-dev libnewt-dev libncurses5-dev uuid-dev libxml2-dev libsqlite3-dev libssl-dev portaudio19-dev
apt -y install dh-autoreconf
</pre>
</pre>




= Install Asterisk =
Install BCG729
<pre>
<pre>
cd /usr/src
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
wget http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/bcg729-1.0.2.tar.gz
tar xvf asterisk-13-current.tar.gz
tar xzf bcg729-1.0.2.tar.gz
rm -f asterisk-13-current.tar.gz
rm -f bcg729-1.0.2.tar.gz
cd asterisk-13.5.0
cd bcg729-1.0.2
./configure
./configure
./contrib/scripts/get_mp3_source.sh
make menuselect
make
make
make install
make install
make config
</pre>
make samples
 
Install the Asterisk g729 codec.
<pre>
cd /usr/src
wget http://asterisk.hosting.lv/src/asterisk-g72x-1.4.3.tar.bz2
tar xjf asterisk-g72x-1.4.3.tar.bz2
rm -f asterisk-g72x-1.4.3.tar.bz2
cd asterisk-g72x-1.4.3
./autogen.sh
./configure CFLAGS='-march=armv6' --with-asterisk160 --with-bcg729  --with-asterisk-includes=../asterisk-16.6.1/include
make
make install
</pre>
</pre>


= Debian Cleanup =
= Debian Cleanup =
<pre>
<pre>
make -y autoclean
apt -y autoclean
apt -y autoremove
</pre>
</pre>




[[Category : Asterisk]] [[Category : Raspbian]]
[[Category : Asterisk]] [[Category : Raspbian]]

Latest revision as of 01:19, 21 November 2019

To install Asterisk on a Rapsberry Pi or Debian based system.

Dependencies

cd /usr/src
wget http://www.libsdl.org/release/SDL2-2.0.9.tar.gz
tar xvf SDL2-2.0.9.tar.gz
rm -f SDL2-2.0.9.tar.gz
cd SDL2-2.0.9
./configure
make
make install

Faxing

Only do this section if you want faxing support using spandsp

apt -y install libtiff5-dev libtiff-tools libspandsp-dev mime-construct
echo /usr/local/lib/ >> /etc/ld.so.conf
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Bundle::LWP"
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Proc::WaitStat"
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install MIME::Types"
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install DBI'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install DBD::mysql"
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install CGI::Util"

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 libedit-dev

Install Asterisk

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar xvf asterisk-16-current.tar.gz
rm -f asterisk-16-current.tar.gz
cd asterisk-16.6.1
./configure --with-jansson-bundled --with-pjproject-bundled
./contrib/scripts/get_mp3_source.sh
make menuselect
make
make install
make config
make samples

g729 Install

Install dependency

apt -y install dh-autoreconf


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

Install the Asterisk g729 codec.

cd /usr/src
wget http://asterisk.hosting.lv/src/asterisk-g72x-1.4.3.tar.bz2
tar xjf asterisk-g72x-1.4.3.tar.bz2
rm -f asterisk-g72x-1.4.3.tar.bz2
cd asterisk-g72x-1.4.3
./autogen.sh
./configure CFLAGS='-march=armv6' --with-asterisk160 --with-bcg729  --with-asterisk-includes=../asterisk-16.6.1/include
make
make install

Debian Cleanup

apt -y autoclean
apt -y autoremove