Updating Asterisk (minor version) 13.0 to 13.5

In order to update Asterisk a minor version e.g. 13.x to 13.y you need to follow the steps below.

If you need instructions on upgrading asterisk to a newer major version e.g from 11 to 13, please leave a comment.

Official instructions for installing Asterisk are here: https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source

1. Download the latest asterisk to /usr/local/src.

cd /usr/local/src

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz

2. Untar Asterisk

tar -zxvf asterisk-13.5.0.tar.gz

3. Change into the untarred directory and check your system.

cd asterisk-13.5.0/

4. If you have missing dependencies after running ./configure you can use the install script to install everything that is missing.

./install_prereq install


./install_prereq install-unpackaged

Note: you may also use: ./install_prereq test

5. Choose modules to install

make menuselect

Here you’ll need to choose the modules your required. Also remember to choose the core sound package you require (i.e. American vs British English or a different language altogether).

6. Now we can make and install asterisk. The first step, will show you the creation of the modules you selected in the make menu select step. The second command ‘make install’ will actually install asterisk.


make install

7. That should be it. We won’t install the sample scripts since this is an upgrade. If you want them please make sure you backup your existing asterisk installation first by tarring up the /etc/asterisk folder at a minimum. If you do want to install the samples and documentation you should run:

make samples
make progdocs

You may also see a warning like this:


 Your Asterisk modules directory, located at
 contains modules that were not installed by this
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.



You’ll probably want to remove these if incompatible.

8. If you had asterisk running you’ll want to stop it

asterisk -r
core stop now

You’ll then need to start the new version of asterisk

asterisk -r
core show version

You should see the following

Asterisk 13.5.0 built by user @ host on a x86_64 running Linux

That’s it! You should now be running the latest version of Asterisk. Please remember to test thoroughly and read the release notes / upgrade notes before releasing asterisk to production.