Created
August 2, 2014 10:05
-
-
Save andrius/6ae3b033caac2081b236 to your computer and use it in GitHub Desktop.
Install script for Asterisk PBX on debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get --yes install curl wget rsync subversion git-core \ | |
build-essential automake autoconf libtool bison libssl-dev openssl libncurses-dev libnewt-dev \ | |
libreadline6 libreadline-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev \ | |
libxslt-dev libc6-dev libcurl4-openssl-dev libgdbm-dev libffi-dev sudo \ | |
libsqlite3-dev sqlite3 libtiff-dev ghostscript usbutils libusb-dev unzip autoconf automake \ | |
minicom mc vim screen tmux libncurses5-dev libxml2-dev libssl-dev uuid-dev \ | |
libpcap-dev ngrep libpcre++-dev libpcre3-dev wpasupplicant w3m ssl-cert ca-certificates \ | |
ffmpeg espeak libespeak-dev libsndfile1-dev libsamplerate0-dev libsrtp0-dev libsrtp0 \ | |
uuid-dev uuid | |
mkdir -p /usr/src/asterisk | |
cd /usr/src/asterisk | |
# download SpanDSP (need to support faxing) | |
wget --continue http://soft-switch.org/downloads/spandsp/spandsp-0.0.6pre21.tgz | |
# download asterisk PBX | |
wget --continue http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11.11.0.tar.gz | |
# espeak from https://zaf.github.io/Asterisk-eSpeak/ | |
git clone git://github.com/zaf/Asterisk-eSpeak | |
# unpack downloaded packages | |
tar -zxf spandsp-0.0.6pre21.tgz | |
tar -zxf asterisk-11.11.0.tar.gz | |
# install spandsp | |
cd /usr/src/asterisk/spandsp-0.0.6 | |
make clean | |
./configure && make all && make install | |
# install asterisk PBX | |
cd /usr/src/asterisk/asterisk-11.11.0 | |
make clean | |
make dist-clean | |
./configure | |
echo "------------------------------------------------------------------------- make all" | |
make all | |
echo "------------------------------------------------------------------------- make install" | |
make install | |
echo "------------------------------------------------------------------------- make samples" | |
make samples | |
echo "------------------------------------------------------------------------- make config" | |
make config | |
echo "------------------------------------------------------------------------- make install-logrotate" | |
make install-logrotate | |
# install asterisk utilities | |
cp -R ./contrib/scripts/astcli /usr/local/bin/ | |
# Automate asterisk service to run on startup. | |
update-rc.d asterisk defaults | |
mkdir -p /var/punchblock/record | |
cd /usr/src/asterisk/Asterisk-eSpeak | |
make all | |
make install | |
make samples |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment