Asterisk On Linux

Install OpenShot on Linux
February 18, 2020
PhpMyAdmin On VPS
February 27, 2020
Show all

Asterisk On Linux

Installing Asterisk on Linux is not a big task but if you know about that the asterisk, then it is easy to install. you need some knowledge about asterisk you can click here,

For little bit
Asterisk is an open source framework for building communications applications. Asterisk turns an ordinary computer into a communications server. Asterisk powers IP PBX systems, VoIP gateways, conference servers and other custom solutions. It is used by small businesses, large businesses, call centers, carriers and government agencies, worldwide. Asterisk is free and open source. Asterisk is sponsored by Digium.
Today, there are more than one million Asterisk-based communications systems in use, in more than 170 countries. Asterisk is used by almost the entire Fortune 1000 list of customers. Most often deployed by system integrators and developers, Asterisk can become the basis for a complete business phone system, or used to enhance or extend an existing system, or to bridge a gap between systems.

Now i am direct going to share some commands, you have to just open linux terminal and paste all commands one by one.

Note now i am sharing the commands for ubuntu OS , if you have another then you can make changes like apt or apt-get to yum.

here is commands

  • sudo apt update && sudo apt upgrade
  • sudo apt install wget build-essential subversion
  • cd /usr/src/
  • sudo wget
  • sudo tar zxf asterisk-15-current.tar.gz
  • cd asterisk-15.*/
  • sudo contrib/scripts/
  • sudo contrib/scripts/install_prereq install
  • sudo ./configure
  • sudo make menuselect
  • sudo make -j2
  • sudo make install
  • sudo make samples
  • sudo make basic-pbx
  • sudo make config
  • sudo ldconfig

Creating Asterisk User

By default Asterisk runs as a root user. For security reasons we will create a new system user and configure Asterisk to run as the newly created user.

To create a new system user named asterisk run the following command:

  • sudo adduser –system –group –home /var/lib/asterisk –no-create-home –gecos “Asterisk PBX” asterisk

To configure Asterisk to run as asterisk user, open the /etc/default/asterisk file and uncomment the following two lines:

  • /etc/default/asterisk
  • AST_USER=”asterisk”
  • AST_GROUP=”asterisk”

Add the asterisk user to the dialout and audio groups:

  • sudo usermod -a -G dialout,audio asterisk

We also need to change the ownership and permissions of all asterisk files and directories so the user asterisk can access those files:

  • sudo chown -R asterisk: /var/{lib,log,run,spool}/asterisk /usr/lib/asterisk /etc/asterisk
  • sudo chmod -R 750 /var/{lib,log,run,spool}/asterisk /usr/lib/asterisk /etc/asterisk
  • sudo systemctl start asterisk
  • sudo asterisk –vvvr (Live Status)
  • sudo systemctl stop asterisk
  • sudo systemctl restart asterisk

The last step is to enable Asterisk service to start on boot with:

  • sudo systemctl enable asterisk

“If you find any of error just comment below i will help you

for checking new post click here


  1. Avatar find us says:

    I simply want to say I am very new to blogging and site-building and certainly enjoyed this website. More than likely I’m likely to bookmark your website . You amazingly have perfect articles. Regards for revealing your blog site.

  2. Avatar find us says:

    This can be an inspiration to many people. Very good job

  3. Avatar Heatherestam says:

    Perfect update of captcha recognition software “XRumer 19.0 + XEvil 5.0”:

    Captcha recognition of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Mail.Ru, SolveMedia, Hydra,
    and more than 12000 another subtypes of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 5.0 with any most popular SEO/SMM programms: iMacros, XRumer, SERP Parser, GSA SER, RankerX, ZennoPoster, Scrapebox, Senuke, FaucetCollector and more than 100 of other programms.

    Interested? You can find a lot of introducing videos about XEvil in YouTube.


    Good luck 😉
    P.S. A Huge Discount -30% for XEvil full version until 15 Jan is AVAILABLE! 🙂

    XEvil Net

Leave a Reply

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