Install Asterisk 13 + DAHDI + LibPRI over CentOS 7 x86_64 Minimal

Cristian Segura
Jul 20, 2017 · 2 min read

Asterisk is a IP PBX (Telephone Switch or PBX using Voice-over-IP technology). Asterisk is an open source software that can be built over a variety of platforms. In this entry I will follow Asterisk 13 installation process over GNU/Linux CentOS7 OS.

Testing platform

  • Base machine: Host OS is a Windows 10 64 bits with Oracle VirtualBox 5.4 as desktop virtualization software.
  • Vitual machine: CentOS 7.3 x86–64 minimal / HDD: 20GB / RAM: 2GB

Installation Process

  • Step 1: Disable SELINUX permanently (by the way, what is selinux?). Be careful and do not start any installation while selinux still enabled (aka enforced mode)! You can execute this action manually or using this command:
disable selinux using sed
  • Step 2: Update operating system
  • Step 3: Download source code of Asterisk 13, Dahdi and LibPRI
  • Step 4: Unpack files and place them in the compilation directory (/usr/src)
  • Step 5: Install compilation depencies list
  • Step 6: Compile DAHDI (by the way … what is dahdi?)

There’s a README file inside source code directory, in this directory you can find commands needed to compile dahdi:

While executing make all I found this compilation error:

After googling for a while I found a solution for this problem (link1, link2):

  • Step 7: Compile LIBPRI (by the way … what is libpri?)
  • Step 8: Compile Asterisk 13

Post-Installation

Checking Asterisk is working properly on CentOS7

  • Starting Asterisk server

If Asterisk was rightly compiled and SELINUX is unabled, you can start Asterisk service using this command:

  • Checking Asterisk server status

If Asterisk was rightly compiled you can query for Asterisk service using this command:

Checking DAHDI is working properly on CentOS7

If DAHDI was rightly compiled these commands should be available in the command line:

OK! … we are ready to start Asterisk PBX seetings.

Final words

Hoping this tutorial have been useful for you I say goodbye with this comments:

Cristian Segura

)

Cristian Segura

Written by

Developer & SysAdmin. PHP/Python/Bash. Vast experience in VoIP deployment and development with Asterisk, Queuemetrics and GNU/Linux Ubuntu/CentOS sysadmin ...

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade