• 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 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. lvsd Command Examples in Linux
  2. How to enable bind query logging to find out Who’s Querying a Name Server
  3. SSSD Service Failing with “SSSD is already running” in CentOS/RHEL 7
  4. How to configure iSCSI target using targetcli in CentOS / RHEL 7
  5. mocp Command Examples in Linux
  6. pvscan Command Examples in Linux
  7. 10 useful cron examples to schedule jobs in Linux
  8. Understanding The sysfs File System (/sys) in Linux
  9. ipcmk Command Examples in Linux
  10. CentOS / RHEL 7 : Booting process

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright