asterisk

Telephone and exchange (phone) server. Used for running the server itself, and managing an already running instance. More information: <https://wiki.asterisk.org/wiki/display/AST/Home>.

Install

All systems
curl cmd.cat/asterisk.sh
Debian Debian
apt-get install asterisk
Ubuntu
apt-get install asterisk
Alpine
apk add asterisk
image/svg+xml Kali Linux
apt-get install asterisk
Fedora
dnf install asterisk
Windows (WSL2)
sudo apt-get update sudo apt-get install asterisk
Raspbian
apt-get install asterisk
Docker
docker run cmd.cat/asterisk asterisk powered by Commando

Telephone and exchange (phone) server. Used for running the server itself, and managing an already running instance. More information: <https://wiki.asterisk.org/wiki/display/AST/Home>.

  • [R]econnect to a running server, and turn on logging 3 levels of [v]erbosity:
    asterisk -r -vvv
  • [R]econnect to a running server, run a single command, and return:
    asterisk -r -x "command"
  • Show chan_SIP clients (phones):
    asterisk -r -x "sip show peers"
  • Show active calls and channels:
    asterisk -r -x "core show channels"
  • Show voicemail mailboxes:
    asterisk -r -x "voicemail show users"
  • Terminate a channel:
    asterisk -r -x "hangup request channel_ID"
  • Reload chan_SIP configuration:
    asterisk -r -x "sip reload"

© tl;dr; authors and contributors