From d9e540a387955aca24bbaffd3a4633c8a12d4ddd Mon Sep 17 00:00:00 2001 From: Jacob Mansfield Date: Thu, 15 Oct 2020 21:24:29 +0100 Subject: [PATCH] asterisk: add page (#4474) --- pages/linux/asterisk.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pages/linux/asterisk.md diff --git a/pages/linux/asterisk.md b/pages/linux/asterisk.md new file mode 100644 index 000000000..1362bb349 --- /dev/null +++ b/pages/linux/asterisk.md @@ -0,0 +1,33 @@ +# asterisk + +> Telephone and exchange (phone) server. +> Used for running the server itself, and managing an already running instance. +> More information: . + +- [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"`