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


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/
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.
make && make install
make samples
make config

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

Start discussion:
Related articles:
This tutorial explains how to install and configure fail2ban for Asterisk 13 IP/PBX. ... more
almost 6 years#fail2ban #asterisk
In this article you will know how to compile G.729 from binaries for your Asterisk IP/PBX. ... more
almost 6 years#g729 #asterisk
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
In this very short tutorial we are going to mount S3 bucket from AWS to the local folder of Debian. ... more
Asterisk IP PBX comes with embedded MixMonitor, that allows us to to record and place those recordings somewhere. ... more