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 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.
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
From here, asterisk should already be running and you can log in with this command:
Asterisk 13.10.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <email@example.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!