• 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 Example

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.

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. daps: open source program for transforming DocBook XML into output formats such as HTML or PDF
  2. CentOS / RHEL : How to get the date and time of executed command in the history command output
  3. login: command not found
  4. dkms: command not found
  5. logsave Command Examples in Linux
  6. lsblk: command not found
  7. sfill: command not found
  8. hcloud Command Examples
  9. How to Trace Python Scripts using trace.py
  10. pactl: 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