How to install Asterisk IP/PBX on Debian 8.x (Jessie)

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. :)

Prerequisites

Let's update packages and install some dependencies.


apt-get update
apt-get install build-essential -y
apt-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.


cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar zxvf asterisk-13-current.tar.gz
cd asterisk-13.XX.X/ // at the time of this tutorial it was 13.10.0
./contrib/scripts/install_prereq install // this installs dependencies, you will be asked to put your country code.
./bootstrap.sh
./configure
make && make install
make samples
make config
asterisk

From here, asterisk should already be running and you can log in with this command:


asterisk -r
Asterisk 13.10.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under

certain conditions. Type 'core show license' for details.

Connected 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!


In short, this is about:
#pbx
#asterisk
#debian

Start discussion:
Related articles:
86 call recording asterisk preview
Asterisk IP PBX comes with embedded MixMonitor, that allows us to to record and place those recordings somewhere. ... more
76 memory swap with debian 8 x preview
If you have slow instance, but you have SSD volumes you can survive like a boss with it to be honest and this is how. ... more
37 compile g 729 for asterisk from binaries preview
In this article you will know how to compile G.729 from binaries for your Asterisk IP/PBX. ... more
almost 2 years#g729 #asterisk
79 mount aws s3 bucket to your debian preview
In this very short tutorial we are going to mount S3 bucket from AWS to the local folder of Debian. ... more
36 fail2ban with asterisk 13 preview
This tutorial explains how to install and configure fail2ban for Asterisk 13 IP/PBX. ... more
almost 2 years#fail2ban #asterisk