How to install Asterisk IPPBX on Debian 8x 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!

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy