HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

asterisk — Run and manage telephone and exchange (phone) server instances. More information: <https://docs.aste

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandasteriskrunandclimanagetelephone
linux

Problem

How to use the asterisk command: Run and manage telephone and exchange (phone) server instances. More information: <https://docs.asterisk.org/Operation/>.

Solution

asterisk — Run and manage telephone and exchange (phone) server instances. More information: <https://docs.asterisk.org/Operation/>.

[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"

Code Snippets

[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"

Context

tldr-pages: linux/asterisk

Revisions (0)

No revisions yet.