How to Install Asterisk on CentOS 7

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Marin Todorov

I am a bachelor in computer science and a Linux Foundation Certified System Administrator. Currently working as a Senior Technical support in the hosting industry. In my free time I like testing new software and inline skating.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

13 Responses

  1. SYNTXERR says:

    Thanks for this!

    I had a fresh install of CentOS7 and needed to run “# usermod -aG wheel asterisk” as root before being able to sudo any commands.

    Also for new versions of asterisk (16 at time of leaving this comment) PJ sip is included by default so no need to download it prior to Asterisk

  2. john says:

    I have installed asterisk 11 in centos 6.5 and it worked fine. After a reboot asterisk -rvv it does not start, it needs to type service asterisk start. is there a way to make asterisk start automatically in centos 6.x version please?

  3. Umar says:

    I have some confusion about Linux server and Linux Desktop Edition which one we have to use to install Asterisk, Is it possible to install asterisk on Linux Desktop edition.

  4. Fitrat says:

    After the make all command my server shows:
    make -C linux all
    make[1]: Entering directory `/root/.local/share/Trash/files/dahdi-linux-complete-2.10.1+2.10.1/linux’
    make -C drivers/dahdi/firmware firmware-loaders
    make[2]: Entering directory `/root/.local/share/Trash/files/dahdi-linux-complete-2.10.1+2.10.1/linux/drivers/dahdi/firmware’
    make[2]: Leaving directory `/root/.local/share/Trash/files/dahdi-linux-complete-2.10.1+2.10.1/linux/drivers/dahdi/firmware’
    You do not appear to have the sources for the 2.6.32-131.0.15.el6.i686 kernel installed.
    make[1]: *** [modules] Error 1
    make[1]: Leaving directory `/root/.local/share/Trash/files/dahdi-linux-complete-2.10.1+2.10.1/linux’
    make: *** [all] Error 2.
    Can you give me the solution?

    • Ravi Saive says:

      You must have kenel-devel package installed on the system.

      # yum install kernel-devel -y
      • Fitrat says:

        Thank you Mr. Ravi for your nice tutorial. That time, i forgot to install some of the packages which were enlisted on your tutorial. Now i have installed Asterisk successfully. Thanks again.

  5. Enrique says:

    The directives you show leaves asterisk installed by user “root”. Therefore, when you run asterisk, asterisk is owned by root. I would prefer to run asterisk as UNIX used asterisk, adding, of course, user and group asterisk on beforehand. May you please tell us how to run asterisk as user asterisk? Thank you.

  6. Noman says:

    i have 2 cisco ip pone what i should first step b4 configure of asterisk installation

  7. Rajendra says:

    want to know about Asterisk-Polycom

  8. cochtan says:

    one important thing is missing – PERL, so before reboot step use also this command:

    yum install perl

    Good luck to all Asterisk people ;-)

  9. johnt says:

    Better to use yum on centos/fedora seeing as the repo is available for these distros.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.