Skip to content

Asterisk

PJSIP endpoints, live channels, queues and SIP trace from asterisk -rx.

Asterisk / FreePBX Requires SmartCom Revisited 1.0.0 or newer

by Nathan Kirk · 71 downloads · MIT licence · revision 1 · published 14 Aug 2026

This bundle can change or destroy device state

  • Reboots or reloads the device (5 steps) — Restarts the device. Any session on it drops, and anything not saved is lost.
  • Restarts telephony services (3 steps) — Drops calls in progress on a PBX.
Show exactly which steps matched
  • Reload PJSIP — Reboots or reloads the device (steps[0], sent text)

    asterisk -rx "module reload res_pjsip.so"
  • Reload chan_sip — Reboots or reloads the device (steps[1], sent text)

    asterisk -rx "sip reload"
  • Reload Dialplan — Reboots or reloads the device (steps[0], sent text)

    asterisk -rx "dialplan reload"
  • Reload Queues — Reboots or reloads the device (steps[0], sent text)

    asterisk -rx "queue reload all"
  • Reload All Config — Reboots or reloads the device (steps[1], sent text)

    asterisk -rx "core reload"
  • Graceful Restart — Restarts telephony services (steps[1], sent text)

    asterisk -rx "core restart gracefully"
  • Restart When Convenient — Restarts telephony services (steps[1], sent text)

    asterisk -rx "core restart when convenient"
  • Restart Now — Restarts telephony services (steps[1], sent text)

    asterisk -rx "core restart now"

Flagged automatically by matching command text. It is a prompt to read the script, not a verdict — plenty of legitimate buttons reboot things on purpose.

Download

3 sets, 94 buttons, 107 steps · 94.6 KB

File format version 1 · exported by Smartcom Revisited

Download .buttons.json
SHA-256 a1a63831a7acb688b23272dba01ba306497b1074f19e2cacc63aafd2a0f6cab2

You get the exact file the uploader submitted, byte for byte — that checksum is what sha256sum will print. Import it from the button panel in SmartCom Revisited.

About this set

Asterisk from the shell using asterisk -rx, so every button is one non-interactive command: endpoint and registration state, live channels and queues, dialplan lookups and SIP tracing.

Every button, in full

Exactly what gets sent

This is the complete script of the file below — nothing is summarised or hidden. Read it before you download it, the same way you would read a script someone emailed you.

Asterisk - Endpoints & Registrations

25 buttons

PJSIP and chan_sip endpoints, contacts, trunks and auth.

PJSIP Endpoints

Run: asterisk -rx "pjsip show endpoints"

1 step

  1. Send
    asterisk -rx "pjsip show endpoints"

    Sends Enter afterwards.

PJSIP Endpoint Detail

Run: asterisk -rx "pjsip show endpoint {{EXTENSION}}"

1 step · 1 input

  1. Send
    asterisk -rx "pjsip show endpoint {{EXTENSION}}"

    Sends Enter afterwards.

PJSIP Contacts

Run: asterisk -rx "pjsip show contacts"

1 step

  1. Send
    asterisk -rx "pjsip show contacts"

    Sends Enter afterwards.

PJSIP AORs

Run: asterisk -rx "pjsip show aors"

1 step

  1. Send
    asterisk -rx "pjsip show aors"

    Sends Enter afterwards.

PJSIP AOR Detail

Run: asterisk -rx "pjsip show aor {{EXTENSION}}"

1 step · 1 input

  1. Send
    asterisk -rx "pjsip show aor {{EXTENSION}}"

    Sends Enter afterwards.

PJSIP Auths

Run: asterisk -rx "pjsip show auths"

1 step

  1. Send
    asterisk -rx "pjsip show auths"

    Sends Enter afterwards.

PJSIP Transports

Run: asterisk -rx "pjsip show transports"

1 step

  1. Send
    asterisk -rx "pjsip show transports"

    Sends Enter afterwards.

PJSIP Outbound Registrations

Run: asterisk -rx "pjsip show registrations"

1 step

  1. Send
    asterisk -rx "pjsip show registrations"

    Sends Enter afterwards.

PJSIP Identifies

Run: asterisk -rx "pjsip show identifies"

1 step

  1. Send
    asterisk -rx "pjsip show identifies"

    Sends Enter afterwards.

Unreachable Endpoints

Run: asterisk -rx "pjsip show contacts" | grep -i unavail

1 step

  1. Send
    asterisk -rx "pjsip show contacts" | grep -i unavail

    Sends Enter afterwards.

Reachable Endpoints

Run: asterisk -rx "pjsip show contacts" | grep -i avail

1 step

  1. Send
    asterisk -rx "pjsip show contacts" | grep -i avail

    Sends Enter afterwards.

Endpoint Count

Run: asterisk -rx "pjsip show endpoints" | grep -c Endpoint:

1 step

  1. Send
    asterisk -rx "pjsip show endpoints" | grep -c Endpoint:

    Sends Enter afterwards.

SIP Peers (chan_sip)

Run: asterisk -rx "sip show peers"

1 step

  1. Send
    asterisk -rx "sip show peers"

    Sends Enter afterwards.

SIP Peer Detail (chan_sip)

Run: asterisk -rx "sip show peer {{EXTENSION}}"

1 step · 1 input

  1. Send
    asterisk -rx "sip show peer {{EXTENSION}}"

    Sends Enter afterwards.

SIP Registry (chan_sip)

Run: asterisk -rx "sip show registry"

1 step

  1. Send
    asterisk -rx "sip show registry"

    Sends Enter afterwards.

IAX2 Peers

Run: asterisk -rx "iax2 show peers"

1 step

  1. Send
    asterisk -rx "iax2 show peers"

    Sends Enter afterwards.

IAX2 Registry

Run: asterisk -rx "iax2 show registry"

1 step

  1. Send
    asterisk -rx "iax2 show registry"

    Sends Enter afterwards.

Registration for Trunk

Run: asterisk -rx "pjsip show registration {{TRUNK}}"

1 step · 1 input

  1. Send
    asterisk -rx "pjsip show registration {{TRUNK}}"

    Sends Enter afterwards.

Devices by State

Run: asterisk -rx "core show hints"

1 step

  1. Send
    asterisk -rx "core show hints"

    Sends Enter afterwards.

Hint for Extension

Run: asterisk -rx "core show hint {{EXTENSION}}"

1 step · 1 input

  1. Send
    asterisk -rx "core show hint {{EXTENSION}}"

    Sends Enter afterwards.

Reload PJSIP

Re-reads PJSIP config. Registered phones stay registered; in-progress calls are not touched.

1 step · asks for confirmation before it runs

  • Reboots or reloads the device
  1. Send
    asterisk -rx "module reload res_pjsip.so"

    Sends Enter afterwards.

Send Outbound Registration

Run: asterisk -rx "pjsip send register {{TRUNK}}"

1 step · asks for confirmation before it runs · 1 input

  1. Send
    asterisk -rx "pjsip send register {{TRUNK}}"

    Sends Enter afterwards.

Unregister Trunk

Run: asterisk -rx "pjsip send unregister {{TRUNK}}"

2 steps · asks for confirmation before it runs · 1 input

  1. Confirm

    Asks yes or no: “Unregister trunk {{TRUNK}} from the provider. Inbound calls on that trunk stop arriving until it registers again. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "pjsip send unregister {{TRUNK}}"

    Sends Enter afterwards.

Reload chan_sip

Run: asterisk -rx "sip reload"

2 steps · asks for confirmation before it runs

  • Reboots or reloads the device
  1. Confirm

    Asks yes or no: “Reload chan_sip. Peers re-evaluate their config and some phones re-register — a brief window where calls can fail to route. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "sip reload"

    Sends Enter afterwards.

Qualify All Endpoints

Run: asterisk -rx "pjsip qualify *"

2 steps · asks for confirmation before it runs

  1. Confirm

    Asks yes or no: “Send an OPTIONS probe to every endpoint at once. On a large PBX this is a burst of traffic that can briefly load the box. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "pjsip qualify *"

    Sends Enter afterwards.

Asterisk - Calls, Channels & Queues

29 buttons

Live channels, active calls, queue state and agents.

Active Channels

Run: asterisk -rx "core show channels"

1 step

  1. Send
    asterisk -rx "core show channels"

    Sends Enter afterwards.

Channel Count

Run: asterisk -rx "core show channels count"

1 step

  1. Send
    asterisk -rx "core show channels count"

    Sends Enter afterwards.

Channel Verbose

Run: asterisk -rx "core show channels verbose"

1 step

  1. Send
    asterisk -rx "core show channels verbose"

    Sends Enter afterwards.

Channel Detail

Run: asterisk -rx "core show channel {{CHANNEL}}"

1 step · 1 input

  1. Send
    asterisk -rx "core show channel {{CHANNEL}}"

    Sends Enter afterwards.

PJSIP Channels

Run: asterisk -rx "pjsip show channels"

1 step

  1. Send
    asterisk -rx "pjsip show channels"

    Sends Enter afterwards.

Active Calls Only

Run: asterisk -rx "core show channels" | grep -E "active call|active channel"

1 step

  1. Send
    asterisk -rx "core show channels" | grep -E "active call|active channel"

    Sends Enter afterwards.

Longest Running Calls

Run: asterisk -rx "core show channels verbose" | sort -k 5 -r | head -15

1 step

  1. Send
    asterisk -rx "core show channels verbose" | sort -k 5 -r | head -15

    Sends Enter afterwards.

Bridged Calls

Run: asterisk -rx "bridge show all"

1 step

  1. Send
    asterisk -rx "bridge show all"

    Sends Enter afterwards.

Bridge Detail

Run: asterisk -rx "bridge show {{ID}}"

1 step · 1 input

  1. Send
    asterisk -rx "bridge show {{ID}}"

    Sends Enter afterwards.

Queue Summary

Run: asterisk -rx "queue show"

1 step

  1. Send
    asterisk -rx "queue show"

    Sends Enter afterwards.

Queue Detail

Run: asterisk -rx "queue show {{QUEUE}}"

1 step · 1 input

  1. Send
    asterisk -rx "queue show {{QUEUE}}"

    Sends Enter afterwards.

Queue Statistics

Run: asterisk -rx "queue show" | grep -A 20 {{QUEUE}}

1 step · 1 input

  1. Send
    asterisk -rx "queue show" | grep -A 20 {{QUEUE}}

    Sends Enter afterwards.

Paused Queue Members

Run: asterisk -rx "queue show" | grep -i paused

1 step

  1. Send
    asterisk -rx "queue show" | grep -i paused

    Sends Enter afterwards.

Parked Calls

Run: asterisk -rx "parking show"

1 step

  1. Send
    asterisk -rx "parking show"

    Sends Enter afterwards.

Conference Rooms

Run: asterisk -rx "confbridge list"

1 step

  1. Send
    asterisk -rx "confbridge list"

    Sends Enter afterwards.

Conference Participants

Run: asterisk -rx "confbridge list {{ID}}"

1 step · 1 input

  1. Send
    asterisk -rx "confbridge list {{ID}}"

    Sends Enter afterwards.

Voicemail Users

Run: asterisk -rx "voicemail show users"

1 step

  1. Send
    asterisk -rx "voicemail show users"

    Sends Enter afterwards.

Voicemail Boxes with Messages

Run: asterisk -rx "voicemail show users" | grep -v " 0 " | head -30

1 step

  1. Send
    asterisk -rx "voicemail show users" | grep -v " 0 " | head -30

    Sends Enter afterwards.

Active Recordings

Run: asterisk -rx "core show channels verbose" | grep -i record

1 step

  1. Send
    asterisk -rx "core show channels verbose" | grep -i record

    Sends Enter afterwards.

Codec Usage

Run: asterisk -rx "core show channels verbose" | awk '{print $NF}' | sort | uniq -c

1 step

  1. Send
    asterisk -rx "core show channels verbose" | awk '{print $NF}' | sort | uniq -c

    Sends Enter afterwards.

RTP Statistics

Run: asterisk -rx "rtp show stats"

1 step

  1. Send
    asterisk -rx "rtp show stats"

    Sends Enter afterwards.

Add Queue Member

Run: asterisk -rx "queue add member PJSIP/{{EXTENSION}} to {{QUEUE}}"

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    asterisk -rx "queue add member PJSIP/{{EXTENSION}} to {{QUEUE}}"

    Sends Enter afterwards.

Unpause Queue Member

Run: asterisk -rx "queue unpause member PJSIP/{{EXTENSION}} queue {{QUEUE}}"

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    asterisk -rx "queue unpause member PJSIP/{{EXTENSION}} queue {{QUEUE}}"

    Sends Enter afterwards.

Originate Test Call

Rings an extension and connects it to a dialplan target. The phone will actually ring.

1 step · asks for confirmation before it runs · 3 inputs

  1. Send
    asterisk -rx "channel originate PJSIP/{{EXTENSION}} extension {{TARGET}}@{{CONTEXT}}"

    Sends Enter afterwards.

Pause Queue Member

Run: asterisk -rx "queue pause member PJSIP/{{EXTENSION}} queue {{QUEUE}} reason maintenance"

2 steps · asks for confirmation before it runs · 2 inputs

  1. Confirm

    Asks yes or no: “Pause {{EXTENSION}} in queue {{QUEUE}}. They stop receiving queue calls until unpaused — if this leaves the queue with no agents, callers wait with nobody to answer. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "queue pause member PJSIP/{{EXTENSION}} queue {{QUEUE}} reason maintenance"

    Sends Enter afterwards.

Remove Queue Member

Run: asterisk -rx "queue remove member PJSIP/{{EXTENSION}} from {{QUEUE}}"

2 steps · asks for confirmation before it runs · 2 inputs

  1. Confirm

    Asks yes or no: “Remove {{EXTENSION}} from queue {{QUEUE}} entirely. If they were added statically in config, a reload puts them back; if dynamically, they are gone. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "queue remove member PJSIP/{{EXTENSION}} from {{QUEUE}}"

    Sends Enter afterwards.

Hang Up Channel

Run: asterisk -rx "channel request hangup {{CHANNEL}}"

2 steps · asks for confirmation before it runs · 1 input

  1. Confirm

    Asks yes or no: “Hang up {{CHANNEL}}. That call ends immediately — the person on it hears the line drop. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "channel request hangup {{CHANNEL}}"

    Sends Enter afterwards.

Hang Up All Channels

Run: asterisk -rx "channel request hangup all"

2 steps · asks for confirmation before it runs

  1. Confirm

    Asks yes or no: “Hang up every call on this PBX at once. Everyone on a call is cut off with no warning. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "channel request hangup all"

    Sends Enter afterwards.

Redirect Channel

Run: asterisk -rx "channel redirect {{CHANNEL}} {{TARGET}}@{{CONTEXT}}"

2 steps · asks for confirmation before it runs · 3 inputs

  1. Confirm

    Asks yes or no: “Move {{CHANNEL}} to another dialplan destination mid-call. The caller is transferred with no announcement. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "channel redirect {{CHANNEL}} {{TARGET}}@{{CONTEXT}}"

    Sends Enter afterwards.

Asterisk - Dialplan, Trace & System

40 buttons

Dialplan lookups, SIP trace, logs, reloads and restarts.

Dialplan Contexts

Run: asterisk -rx "dialplan show" | grep "Context"

1 step

  1. Send
    asterisk -rx "dialplan show" | grep "Context"

    Sends Enter afterwards.

Dialplan for Context

Run: asterisk -rx "dialplan show {{CONTEXT}}"

1 step · 1 input

  1. Send
    asterisk -rx "dialplan show {{CONTEXT}}"

    Sends Enter afterwards.

Dialplan for Extension

Run: asterisk -rx "dialplan show {{EXTENSION}}@{{CONTEXT}}"

1 step · 2 inputs

  1. Send
    asterisk -rx "dialplan show {{EXTENSION}}@{{CONTEXT}}"

    Sends Enter afterwards.

Global Variables

Run: asterisk -rx "dialplan show globals"

1 step

  1. Send
    asterisk -rx "dialplan show globals"

    Sends Enter afterwards.

Dialplan Functions

Run: asterisk -rx "core show functions" | head -40

1 step

  1. Send
    asterisk -rx "core show functions" | head -40

    Sends Enter afterwards.

Applications List

Run: asterisk -rx "core show applications" | head -40

1 step

  1. Send
    asterisk -rx "core show applications" | head -40

    Sends Enter afterwards.

Loaded Modules

Run: asterisk -rx "module show"

1 step

  1. Send
    asterisk -rx "module show"

    Sends Enter afterwards.

Module Detail

Run: asterisk -rx "module show like {{NAME}}"

1 step · 1 input

  1. Send
    asterisk -rx "module show like {{NAME}}"

    Sends Enter afterwards.

Core Status

Run: asterisk -rx "core show uptime"

1 step

  1. Send
    asterisk -rx "core show uptime"

    Sends Enter afterwards.

Core Settings

Run: asterisk -rx "core show settings"

1 step

  1. Send
    asterisk -rx "core show settings"

    Sends Enter afterwards.

Asterisk Version

Run: asterisk -rx "core show version"

1 step

  1. Send
    asterisk -rx "core show version"

    Sends Enter afterwards.

System Load

Run: asterisk -rx "core show sysinfo"

1 step

  1. Send
    asterisk -rx "core show sysinfo"

    Sends Enter afterwards.

Codecs Available

Run: asterisk -rx "core show codecs"

1 step

  1. Send
    asterisk -rx "core show codecs"

    Sends Enter afterwards.

CDR Status

Run: asterisk -rx "cdr show status"

1 step

  1. Send
    asterisk -rx "cdr show status"

    Sends Enter afterwards.

CEL Status

Run: asterisk -rx "cel show status"

1 step

  1. Send
    asterisk -rx "cel show status"

    Sends Enter afterwards.

AMI Users

Run: asterisk -rx "manager show users"

1 step

  1. Send
    asterisk -rx "manager show users"

    Sends Enter afterwards.

AMI Connections

Run: asterisk -rx "manager show connected"

1 step

  1. Send
    asterisk -rx "manager show connected"

    Sends Enter afterwards.

Log Channels

Run: asterisk -rx "logger show channels"

1 step

  1. Send
    asterisk -rx "logger show channels"

    Sends Enter afterwards.

Full Log Tail

Run: tail -{{LINES}} /var/log/asterisk/full

1 step · 1 input

  1. Send
    tail -{{LINES}} /var/log/asterisk/full

    Sends Enter afterwards.

Search Log

Run: grep {{PATTERN}} /var/log/asterisk/full | tail -{{LINES}}

1 step · 2 inputs

  1. Send
    grep {{PATTERN}} /var/log/asterisk/full | tail -{{LINES}}

    Sends Enter afterwards.

Errors in Log

Run: grep -iE "error|warning" /var/log/asterisk/full | tail -{{LINES}}

1 step · 1 input

  1. Send
    grep -iE "error|warning" /var/log/asterisk/full | tail -{{LINES}}

    Sends Enter afterwards.

Log for Extension

Run: grep {{EXTENSION}} /var/log/asterisk/full | tail -{{LINES}}

1 step · 2 inputs

  1. Send
    grep {{EXTENSION}} /var/log/asterisk/full | tail -{{LINES}}

    Sends Enter afterwards.

Messages Log

Run: tail -{{LINES}} /var/log/asterisk/messages

1 step · 1 input

  1. Send
    tail -{{LINES}} /var/log/asterisk/messages

    Sends Enter afterwards.

Asterisk Process

Run: ps aux | grep [a]sterisk

1 step

  1. Send
    ps aux | grep [a]sterisk

    Sends Enter afterwards.

Asterisk Service Status

Run: systemctl status asterisk --no-pager

1 step

  1. Send
    systemctl status asterisk --no-pager

    Sends Enter afterwards.

Disk Space for Recordings

Run: df -h /var/spool/asterisk

1 step

  1. Send
    df -h /var/spool/asterisk

    Sends Enter afterwards.

Recording Directory Size

Run: du -sh /var/spool/asterisk/monitor 2>/dev/null

1 step

  1. Send
    du -sh /var/spool/asterisk/monitor 2>/dev/null

    Sends Enter afterwards.

Enable PJSIP Logger

Writes full SIP messages to the log. Turn it off again — it is noisy and fills the disk on a busy PBX.

1 step · asks for confirmation before it runs

  1. Send
    asterisk -rx "pjsip set logger on"

    Sends Enter afterwards.

Disable PJSIP Logger

Run: asterisk -rx "pjsip set logger off"

1 step · asks for confirmation before it runs

  1. Send
    asterisk -rx "pjsip set logger off"

    Sends Enter afterwards.

Enable SIP Debug for Peer

Run: asterisk -rx "sip set debug peer {{EXTENSION}}"

1 step · asks for confirmation before it runs · 1 input

  1. Send
    asterisk -rx "sip set debug peer {{EXTENSION}}"

    Sends Enter afterwards.

Disable SIP Debug

Run: asterisk -rx "sip set debug off"

1 step · asks for confirmation before it runs

  1. Send
    asterisk -rx "sip set debug off"

    Sends Enter afterwards.

Set Verbose Level

Run: asterisk -rx "core set verbose {{LEVEL}}"

1 step · asks for confirmation before it runs · 1 input

  1. Send
    asterisk -rx "core set verbose {{LEVEL}}"

    Sends Enter afterwards.

Reload Dialplan

Run: asterisk -rx "dialplan reload"

1 step · asks for confirmation before it runs

  • Reboots or reloads the device
  1. Send
    asterisk -rx "dialplan reload"

    Sends Enter afterwards.

Reload Queues

Run: asterisk -rx "queue reload all"

1 step · asks for confirmation before it runs

  • Reboots or reloads the device
  1. Send
    asterisk -rx "queue reload all"

    Sends Enter afterwards.

Rotate Logs

Run: asterisk -rx "logger rotate"

1 step · asks for confirmation before it runs

  1. Send
    asterisk -rx "logger rotate"

    Sends Enter afterwards.

Reload All Config

Run: asterisk -rx "core reload"

2 steps · asks for confirmation before it runs

  • Reboots or reloads the device
  1. Confirm

    Asks yes or no: “Reload every module's configuration. Calls in progress usually survive, but registrations and queues re-evaluate and a bad config file takes effect immediately. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "core reload"

    Sends Enter afterwards.

Graceful Restart

Run: asterisk -rx "core restart gracefully"

2 steps · asks for confirmation before it runs

  • Restarts telephony services
  1. Confirm

    Asks yes or no: “Restart Asterisk once every current call has ended. New calls are refused from now until it comes back, so on a busy PBX this can hold for a long time. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "core restart gracefully"

    Sends Enter afterwards.

Restart When Convenient

Run: asterisk -rx "core restart when convenient"

2 steps · asks for confirmation before it runs

  • Restarts telephony services
  1. Confirm

    Asks yes or no: “Restart Asterisk at the next moment there are no calls. Timing is not under your control, so the outage lands without warning. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "core restart when convenient"

    Sends Enter afterwards.

Restart Now

Run: asterisk -rx "core restart now"

2 steps · asks for confirmation before it runs

  • Restarts telephony services
  1. Confirm

    Asks yes or no: “Restart Asterisk immediately. Every call in progress is cut off mid-conversation. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "core restart now"

    Sends Enter afterwards.

Stop Asterisk Gracefully

Run: asterisk -rx "core stop gracefully"

2 steps · asks for confirmation before it runs

  1. Confirm

    Asks yes or no: “Stop Asterisk once calls have ended. The PBX will not come back on its own — you need service control to start it again. Continue?”

    Answering no stops the script here.

  2. Send
    asterisk -rx "core stop gracefully"

    Sends Enter afterwards.

Version history

  • Revision 1 current

    First published version.

    14 Aug 2026 · 94.6 KB · needs 1.0.0+ · a1a63831a7acb688…

Something wrong with this set?

Sign in to report it, or email abuse@smartcomrevisited.com.