How To Install Asterisk 16 17 on Debian Ubuntu Linux

Downloading and compiling from source to get the latest version of Asterisk is really simple with this guide.

apt install gcc make g++ libedit-dev uuid-dev libjansson-dev apt install libxml2-dev sqlite3 libsqlite3-dev
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar -zxvf asterisk-16-current.tar.gz
cd asterisk-16.6.2/

./configure



If you get this error change you can change your configure line to this:
configure: *** Asterisk requires libjansson >= 2.11 and no system copy was found.
configure: *** Please install the 'libjansson' development package or
configure: *** use './configure --with-jansson-bundled'
root@metaspoit:~/asterisk-16.6.2# apt install libjansson-dev


./configure --with-jansson-bundled


#If you are lucky and all goes well:

configure: creating ./config.status
config.status: creating makeopts
config.status: creating autoconfig.h
configure: Menuselect build configuration successfully completed

               .$$$$$$$$$$$$$$$=..     
            .$7$7..          .7$$7:.   
          .$$:.                 ,$7.7  
        .$7.     7$$$$           .$$77 
     ..$$.       $$$$$            .$$$7
    ..7$   .?.   $$$$$   .?.       7$$$.
   $.$.   .$$$7. $$$$7 .7$$$.      .$$$.
 .777.   .$$$$$$77$$$77$$$$$7.      $$$,
 $$$~      .7$$$$$$$$$$$$$7.       .$$$.
.$$7          .7$$$$$$$7:          ?$$$.
$$$          ?7$$$$$$$$$$I        .$$$7
$$$       .7$$$$$$$$$$$$$$$$      :$$$.
$$$       $$$$$$7$$$$$$$$$$$$    .$$$. 
$$$        $$$   7$$$7  .$$$    .$$$.  
$$$$             $$$$7         .$$$.   
7$$$7            7$$$$        7$$$     
 $$$$$                        $$$      
  $$$$7.                       $$  (TM)    
   $$$$$$$.           .7$$$$$$  $$     
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$     
       $$$$$$$$$$$$$$$$.               

configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : pc : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : pc : linux-gnu :


make

#if all goes well you should see this

   [CC] res_musiconhold.c -> res_musiconhold.o
   [LD] res_musiconhold.o -> res_musiconhold.so
   [CC] res_adsi.c -> res_adsi.o
   [LD] res_adsi.o -> res_adsi.so
   [CC] res_limit.c -> res_limit.o
   [LD] res_limit.o -> res_limit.so
   [CC] res_rtp_multicast.c -> res_rtp_multicast.o
   [LD] res_rtp_multicast.o -> res_rtp_multicast.so
   [CC] res_smdi.c -> res_smdi.o
   [LD] res_smdi.o -> res_smdi.so
   [CC] res_pjsip_authenticator_digest.c -> res_pjsip_authenticator_digest.o
   [LD] res_pjsip_authenticator_digest.o -> res_pjsip_authenticator_digest.so
   [CC] res_pjsip_transport_websocket.c -> res_pjsip_transport_websocket.o
   [LD] res_pjsip_transport_websocket.o -> res_pjsip_transport_websocket.so
   [CC] res_ari_events.c -> res_ari_events.o
   [CC] ari/resource_events.c -> ari/resource_events.o
   [LD] res_ari_events.o ari/resource_events.o -> res_ari_events.so
Building Documentation For: third-party channels pbx apps codecs formats cdr cel bridges funcs tests main res addons
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+


#if it still went well then install it!


make install

 +---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 + For generic reference documentation:      +
 +    make samples                           +
 +                                           +
 + For a sample basic PBX:                   +
 +    make basic-pbx                         +
 +                                           +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+
 


Tags:

install, asterisk, debian, ubuntu, linuxdownloading, compiling, apt, gcc, libedit, dev, uuid, libjansson, libxml, sqlite, libsqlite, wget, http, downloads, org, pub, telephony, tar, gz, zxvf, configure, requires, jansson, bundled, metaspoit, creating, config, makeopts, autoconfig, menuselect, configuration, successfully, completed, tm, configured, os, linux, gnu, cpu, _, vendor, pc, cc, res_musiconhold, ld, res_adsi, res_limit, res_rtp_multicast, res_smdi, res_pjsip_authenticator_digest, res_pjsip_transport_websocket, res_ari_events, ari, resource_events, documentation, channels, pbx, apps, codecs, formats, cdr, cel, bridges, funcs, res, addons, installed, installation, overwriting, existing, generic, reference, progdocs, doxygen,

Latest Articles

  • how to use ifplugd in Linux to execute a command or script when a NIC cable is unplugged or plugged in
  • dd how to backup and restore disk images including compression with gzip
  • mpv / mplayer with Radeon / AMD GPU Video Card Driver enable VDPAU GPU Accelerated Video Decoding
  • Wordpress Reset Blog User Password from MySQL Using Linux Bash and not PHPMyadmin
  • Ubuntu Linux Mint Debian xorg performance and tear-free tuning for AMD Radeon Based Cards
  • Centos 7 Stopped and Disabled Firewalld and ports still blocked
  • MariaDB / MySQL Reset Root Forgotten Password on Centos 7
  • Centos 7 How to install Mysql/Mariadb
  • PHP 7.2, Apache and Centos 7 How To Install
  • Ubuntu Debian Linux Mint r8169 r8168 Network Driver Problem and Solution
  • Linux 3D Performance benchmarks with glxgears 59-60fps solution
  • How To Install Asterisk 16 17 on Debian Ubuntu Linux
  • Linux Ubuntu Debian Centos How To Make a Bootable Windows 7, 8, 10, 2016, 2019 Server USB from ISO
  • How To Restore Windows MBR Bootsector from Linux using syslinux
  • Linux Ubuntu Cannot Print Large Images
  • Cannot Print PDF Solution and Howto Resize
  • Linux Console Login Screen TTY Change Message
  • Apache Cannot Start Listening Already on 0.0.0.0
  • MySQL Bash Query to pipe input directly without using heredoc trick
  • CentOS 6 and 7 / RHEL Persistent DHCP Solution