How to Install Asterisk on CentOS 7

Asterisk is a robust open-source communication platform that allows you to build and deploy a variety of communication applications, such as VoIP gateways, IP PBX systems, and conference servers. In this tutorial, we will walk you through the process of installing Asterisk on CentOS 7. Whether you’re an aspiring VoIP administrator or simply curious about exploring Asterisk, this guide will help you get started.

Install Asterisk on CentOS 7

Step-by-Step Guide:

  1. Prerequisites:
    • Ensure you have a CentOS 7 server with root access.
    • Make sure you have a stable internet connection.
    • Familiarize yourself with basic Linux command line usage.
  2. Installing Required Dependencies:
    • Update your system: sudo yum update
    • Install necessary dependencies: sudo yum install -y wget gcc gnutls-devel ncurses-devel libxml2-devel sqlite-devel
  3. Downloading and Compiling Asterisk:
    • Download Asterisk source code: wget
    • Extract the source code: tar -zxvf asterisk-x.y.z.tar.gz
    • Go to the extracted directory: cd asterisk-x.y.z
    • Configure Asterisk: ./configure
    • Compile Asterisk: make
    • Install Asterisk: sudo make install
  4. Configuring Asterisk:
    • Go to the Asterisk configuration directory: cd /etc/asterisk
    • Edit the main configuration file: sudo nano /etc/asterisk/asterisk.conf
    • Customize the configuration as per your requirements.
    • Save and exit the file.
    • Edit other configuration files if needed, such as sip.conf or extensions.conf.
  5. Testing and Verifying the Installation:
    • Start the Asterisk service: sudo asterisk -vvvvvvr
    • Test basic functionality using the Asterisk console:
      • Make a test call: dialplan show 100
      • Check the status of registered SIP devices: sip show peers
      • Verify audio playback and recording: core show applications
    • Exit the Asterisk console: exit
  6. Additional Resources and References:
    • Official Asterisk website: link
    • Asterisk Wiki: link
    • CentOS: link


By following this step-by-step guide, you have successfully installed Asterisk on your CentOS 7 server. You are now ready to explore the vast possibilities offered by this powerful open-source communication platform. Should you encounter any issues or require additional guidance, refer to the resources and references provided. Enjoy your journey with Asterisk!


Leave a Reply

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

%d bloggers like this: