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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. How to Copy / Move Files and Directories in Linux with “cp” and “mv” commands
  2. tc: command not found
  3. Linux OS Service ‘kudzu’
  4. Firewalld Command line Reference (Cheat Sheet)
  5. Configure dnsmasq to use different DNS Servers for some Domains (CentOS/RHEL)
  6. “aws s3 cp” Command Examples
  7. optipng for image optimization
  8. netcat Command Examples in Linux
  9. pgrep: command not found
  10. How to Disable rpc.quotad Service in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • “aws s3 mv” Command Examples
  • “aws s3 mb” Command Examples
  • “aws s3 ls” Command Examples
  • “aws s3 cp” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright