• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

asterisk: command not found

by admin

The Asterisk Project is a free and open-source software project that provides a complete PBX (private branch exchange) system for telecommunication. It is a popular choice for building custom telephony systems, such as private branch exchanges (PBX), call centers, and voicemail systems.

Asterisk was created in 1999 by Mark Spencer, and it has since become one of the most widely used PBX systems in the world. It runs on a variety of operating systems, including Linux, BSD, and Mac OS X, and it supports a wide range of hardware platforms.

The asterisk command is used for running the server itself and managing an already running instance. If you encounter the below error while running the asterisk command:

# asterisk: command not found

you may try installing the below package as per your choice of distribution:

OS Distribution Command
Debian apt-get install asterisk
Ubuntu apt-get install asterisk
Alpine apk add asterisk
Kali Linux apt-get install asterisk
Fedora dnf install asterisk
Raspbian apt-get install asterisk

asterisk Command Examples in Linux

1. [R]econnect to a running server, and turn on logging 3 levels of [v]erbosity:

# asterisk -r -vvv

2. [R]econnect to a running server, run a single command, and return:

# asterisk -r -x "command"

3. Show chan_SIP clients (phones):

# asterisk -r -x "sip show peers"

4. Show active calls and channels:

# asterisk -r -x "core show channels"

5. Show voicemail mailboxes:

# asterisk -r -x "voicemail show users"

6. Terminate a channel:

# asterisk -r -x "hangup request channel_ID"

7. Reload chan_SIP configuration:

# asterisk -r -x "sip reload"

Filed Under: Linux

Some more articles you might also be interested in …

  1. Understanding How Umask Controls the Initial File / Directory Permissions in Linux
  2. How to install Swaks?
  3. qemu-system-x86_64: command not found
  4. corepack: Zero-runtime-dependency package acting as bridge between Node projects and their package managers
  5. authconfig Command Examples in Linux
  6. lrztar Command Examples in Linux
  7. Sample /etc/services file in Linux
  8. How to use sudo to allow a non-root user run a particular command
  9. Inconsistent Device Names Across Reboot Cause Mount Failure Or Incorrect Mount in Linux
  10. po4a-updatepo: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright