How to install Asterisk IPPBX on Debian 8x jessie
Table of contents:
I must admit, I did it last time in 2009 and was not aware of new generations at all. That time I used to work with Asterisk 1.4. Let’s see what has been missed. :)
Let’s update packages and install some dependencies.
1apt-get update 2apt-get install build-essential -y 3apt-get install git-core subversion libjansson-dev sqlite autoconf automake libtool libxml2-dev libncurses5-dev -y
Installation of Asterisk 13 #
Now we are ready to download and compile our PBX. Let’s quickly do this.
1cd /usr/src/ 2wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz 3tar zxvf asterisk-13-current.tar.gz 4cd asterisk-13.XX.X/ // at the time of this tutorial it was 13.10.0 5./contrib/scripts/install_prereq install // this installs dependencies, you will be asked to put your country code. 6./bootstrap.sh 7./configure 8make && make install 9make samples 10make config 11asterisk
From here, asterisk should already be running and you can log in with this command:
1asterisk -r 2Asterisk 13.10.0, Copyright (C) 1999 - 2014, Digium, Inc. and others. 3Created by Mark Spencer <email@example.com> 4Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. 5This is free software, with components licensed under the GNU General Public 6License version 2 and other licenses; you are welcome to redistribute it under 7certain conditions. Type 'core show license' for details. 8========================================================================= 9Connected to Asterisk 13.10.0 currently running on asterisk-13-build-deb (pid = 21925)
Configuration of Asterisk 13 #
There are few major files you need to reconfigure accordingly: users (sip.conf) and dial plan (extensions.conf). I skip this part as it is individual configuration and there are many samples in default configuration files.
That’s all! Enjoy!