PJSIP Endpoints
Run: asterisk -rx "pjsip show endpoints"
1 step
-
Send
asterisk -rx "pjsip show endpoints"Sends Enter afterwards.
PJSIP endpoints, live channels, queues and SIP trace from asterisk -rx.
by Nathan Kirk · 71 downloads · MIT licence · revision 1 · published 14 Aug 2026
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.
3 sets, 94 buttons, 107 steps · 94.6 KB
File format version 1 · exported by Smartcom Revisited
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.
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.
PJSIP and chan_sip endpoints, contacts, trunks and auth.
Run: asterisk -rx "pjsip show endpoints"
1 step
asterisk -rx "pjsip show endpoints"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show endpoint {{EXTENSION}}"
1 step · 1 input
asterisk -rx "pjsip show endpoint {{EXTENSION}}"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show contacts"
1 step
asterisk -rx "pjsip show contacts"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show aors"
1 step
asterisk -rx "pjsip show aors"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show aor {{EXTENSION}}"
1 step · 1 input
asterisk -rx "pjsip show aor {{EXTENSION}}"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show auths"
1 step
asterisk -rx "pjsip show auths"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show transports"
1 step
asterisk -rx "pjsip show transports"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show registrations"
1 step
asterisk -rx "pjsip show registrations"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show identifies"
1 step
asterisk -rx "pjsip show identifies"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show contacts" | grep -i unavail
1 step
asterisk -rx "pjsip show contacts" | grep -i unavail
Sends Enter afterwards.
Run: asterisk -rx "pjsip show contacts" | grep -i avail
1 step
asterisk -rx "pjsip show contacts" | grep -i avail
Sends Enter afterwards.
Run: asterisk -rx "pjsip show endpoints" | grep -c Endpoint:
1 step
asterisk -rx "pjsip show endpoints" | grep -c Endpoint:
Sends Enter afterwards.
Run: asterisk -rx "sip show peers"
1 step
asterisk -rx "sip show peers"
Sends Enter afterwards.
Run: asterisk -rx "sip show peer {{EXTENSION}}"
1 step · 1 input
asterisk -rx "sip show peer {{EXTENSION}}"
Sends Enter afterwards.
Run: asterisk -rx "sip show registry"
1 step
asterisk -rx "sip show registry"
Sends Enter afterwards.
Run: asterisk -rx "iax2 show peers"
1 step
asterisk -rx "iax2 show peers"
Sends Enter afterwards.
Run: asterisk -rx "iax2 show registry"
1 step
asterisk -rx "iax2 show registry"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show registration {{TRUNK}}"
1 step · 1 input
asterisk -rx "pjsip show registration {{TRUNK}}"
Sends Enter afterwards.
Run: asterisk -rx "core show hints"
1 step
asterisk -rx "core show hints"
Sends Enter afterwards.
Run: asterisk -rx "core show hint {{EXTENSION}}"
1 step · 1 input
asterisk -rx "core show hint {{EXTENSION}}"
Sends Enter afterwards.
Re-reads PJSIP config. Registered phones stay registered; in-progress calls are not touched.
1 step · asks for confirmation before it runs
asterisk -rx "module reload res_pjsip.so"
Sends Enter afterwards.
Run: asterisk -rx "pjsip send register {{TRUNK}}"
1 step · asks for confirmation before it runs · 1 input
asterisk -rx "pjsip send register {{TRUNK}}"
Sends Enter afterwards.
Run: asterisk -rx "pjsip send unregister {{TRUNK}}"
2 steps · asks for confirmation before it runs · 1 input
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.
asterisk -rx "pjsip send unregister {{TRUNK}}"
Sends Enter afterwards.
Run: asterisk -rx "sip reload"
2 steps · asks for confirmation before it runs
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.
asterisk -rx "sip reload"
Sends Enter afterwards.
Run: asterisk -rx "pjsip qualify *"
2 steps · asks for confirmation before it runs
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.
asterisk -rx "pjsip qualify *"
Sends Enter afterwards.
Live channels, active calls, queue state and agents.
Run: asterisk -rx "core show channels"
1 step
asterisk -rx "core show channels"
Sends Enter afterwards.
Run: asterisk -rx "core show channels count"
1 step
asterisk -rx "core show channels count"
Sends Enter afterwards.
Run: asterisk -rx "core show channels verbose"
1 step
asterisk -rx "core show channels verbose"
Sends Enter afterwards.
Run: asterisk -rx "core show channel {{CHANNEL}}"
1 step · 1 input
asterisk -rx "core show channel {{CHANNEL}}"
Sends Enter afterwards.
Run: asterisk -rx "pjsip show channels"
1 step
asterisk -rx "pjsip show channels"
Sends Enter afterwards.
Run: asterisk -rx "core show channels" | grep -E "active call|active channel"
1 step
asterisk -rx "core show channels" | grep -E "active call|active channel"
Sends Enter afterwards.
Run: asterisk -rx "core show channels verbose" | sort -k 5 -r | head -15
1 step
asterisk -rx "core show channels verbose" | sort -k 5 -r | head -15
Sends Enter afterwards.
Run: asterisk -rx "bridge show all"
1 step
asterisk -rx "bridge show all"
Sends Enter afterwards.
Run: asterisk -rx "bridge show {{ID}}"
1 step · 1 input
asterisk -rx "bridge show {{ID}}"
Sends Enter afterwards.
Run: asterisk -rx "queue show"
1 step
asterisk -rx "queue show"
Sends Enter afterwards.
Run: asterisk -rx "queue show {{QUEUE}}"
1 step · 1 input
asterisk -rx "queue show {{QUEUE}}"
Sends Enter afterwards.
Run: asterisk -rx "queue show" | grep -A 20 {{QUEUE}}
1 step · 1 input
asterisk -rx "queue show" | grep -A 20 {{QUEUE}}
Sends Enter afterwards.
Run: asterisk -rx "queue show" | grep -i paused
1 step
asterisk -rx "queue show" | grep -i paused
Sends Enter afterwards.
Run: asterisk -rx "parking show"
1 step
asterisk -rx "parking show"
Sends Enter afterwards.
Run: asterisk -rx "confbridge list"
1 step
asterisk -rx "confbridge list"
Sends Enter afterwards.
Run: asterisk -rx "confbridge list {{ID}}"
1 step · 1 input
asterisk -rx "confbridge list {{ID}}"
Sends Enter afterwards.
Run: asterisk -rx "voicemail show users"
1 step
asterisk -rx "voicemail show users"
Sends Enter afterwards.
Run: asterisk -rx "voicemail show users" | grep -v " 0 " | head -30
1 step
asterisk -rx "voicemail show users" | grep -v " 0 " | head -30
Sends Enter afterwards.
Run: asterisk -rx "core show channels verbose" | grep -i record
1 step
asterisk -rx "core show channels verbose" | grep -i record
Sends Enter afterwards.
Run: asterisk -rx "core show channels verbose" | awk '{print $NF}' | sort | uniq -c
1 step
asterisk -rx "core show channels verbose" | awk '{print $NF}' | sort | uniq -c
Sends Enter afterwards.
Run: asterisk -rx "rtp show stats"
1 step
asterisk -rx "rtp show stats"
Sends Enter afterwards.
Run: asterisk -rx "queue add member PJSIP/{{EXTENSION}} to {{QUEUE}}"
1 step · asks for confirmation before it runs · 2 inputs
asterisk -rx "queue add member PJSIP/{{EXTENSION}} to {{QUEUE}}"
Sends Enter afterwards.
Run: asterisk -rx "queue unpause member PJSIP/{{EXTENSION}} queue {{QUEUE}}"
1 step · asks for confirmation before it runs · 2 inputs
asterisk -rx "queue unpause member PJSIP/{{EXTENSION}} queue {{QUEUE}}"
Sends Enter afterwards.
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
asterisk -rx "channel originate PJSIP/{{EXTENSION}} extension {{TARGET}}@{{CONTEXT}}"
Sends Enter afterwards.
Run: asterisk -rx "queue pause member PJSIP/{{EXTENSION}} queue {{QUEUE}} reason maintenance"
2 steps · asks for confirmation before it runs · 2 inputs
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.
asterisk -rx "queue pause member PJSIP/{{EXTENSION}} queue {{QUEUE}} reason maintenance"
Sends Enter afterwards.
Run: asterisk -rx "queue remove member PJSIP/{{EXTENSION}} from {{QUEUE}}"
2 steps · asks for confirmation before it runs · 2 inputs
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.
asterisk -rx "queue remove member PJSIP/{{EXTENSION}} from {{QUEUE}}"
Sends Enter afterwards.
Run: asterisk -rx "channel request hangup {{CHANNEL}}"
2 steps · asks for confirmation before it runs · 1 input
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.
asterisk -rx "channel request hangup {{CHANNEL}}"
Sends Enter afterwards.
Run: asterisk -rx "channel request hangup all"
2 steps · asks for confirmation before it runs
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.
asterisk -rx "channel request hangup all"
Sends Enter afterwards.
Run: asterisk -rx "channel redirect {{CHANNEL}} {{TARGET}}@{{CONTEXT}}"
2 steps · asks for confirmation before it runs · 3 inputs
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.
asterisk -rx "channel redirect {{CHANNEL}} {{TARGET}}@{{CONTEXT}}"
Sends Enter afterwards.
Dialplan lookups, SIP trace, logs, reloads and restarts.
Run: asterisk -rx "dialplan show" | grep "Context"
1 step
asterisk -rx "dialplan show" | grep "Context"
Sends Enter afterwards.
Run: asterisk -rx "dialplan show {{CONTEXT}}"
1 step · 1 input
asterisk -rx "dialplan show {{CONTEXT}}"
Sends Enter afterwards.
Run: asterisk -rx "dialplan show {{EXTENSION}}@{{CONTEXT}}"
1 step · 2 inputs
asterisk -rx "dialplan show {{EXTENSION}}@{{CONTEXT}}"
Sends Enter afterwards.
Run: asterisk -rx "dialplan show globals"
1 step
asterisk -rx "dialplan show globals"
Sends Enter afterwards.
Run: asterisk -rx "core show functions" | head -40
1 step
asterisk -rx "core show functions" | head -40
Sends Enter afterwards.
Run: asterisk -rx "core show applications" | head -40
1 step
asterisk -rx "core show applications" | head -40
Sends Enter afterwards.
Run: asterisk -rx "module show"
1 step
asterisk -rx "module show"
Sends Enter afterwards.
Run: asterisk -rx "module show like {{NAME}}"
1 step · 1 input
asterisk -rx "module show like {{NAME}}"
Sends Enter afterwards.
Run: asterisk -rx "core show uptime"
1 step
asterisk -rx "core show uptime"
Sends Enter afterwards.
Run: asterisk -rx "core show settings"
1 step
asterisk -rx "core show settings"
Sends Enter afterwards.
Run: asterisk -rx "core show version"
1 step
asterisk -rx "core show version"
Sends Enter afterwards.
Run: asterisk -rx "core show sysinfo"
1 step
asterisk -rx "core show sysinfo"
Sends Enter afterwards.
Run: asterisk -rx "core show codecs"
1 step
asterisk -rx "core show codecs"
Sends Enter afterwards.
Run: asterisk -rx "cdr show status"
1 step
asterisk -rx "cdr show status"
Sends Enter afterwards.
Run: asterisk -rx "cel show status"
1 step
asterisk -rx "cel show status"
Sends Enter afterwards.
Run: asterisk -rx "manager show users"
1 step
asterisk -rx "manager show users"
Sends Enter afterwards.
Run: asterisk -rx "manager show connected"
1 step
asterisk -rx "manager show connected"
Sends Enter afterwards.
Run: asterisk -rx "logger show channels"
1 step
asterisk -rx "logger show channels"
Sends Enter afterwards.
Run: tail -{{LINES}} /var/log/asterisk/full
1 step · 1 input
tail -{{LINES}} /var/log/asterisk/full
Sends Enter afterwards.
Run: grep {{PATTERN}} /var/log/asterisk/full | tail -{{LINES}}
1 step · 2 inputs
grep {{PATTERN}} /var/log/asterisk/full | tail -{{LINES}}
Sends Enter afterwards.
Run: grep -iE "error|warning" /var/log/asterisk/full | tail -{{LINES}}
1 step · 1 input
grep -iE "error|warning" /var/log/asterisk/full | tail -{{LINES}}
Sends Enter afterwards.
Run: grep {{EXTENSION}} /var/log/asterisk/full | tail -{{LINES}}
1 step · 2 inputs
grep {{EXTENSION}} /var/log/asterisk/full | tail -{{LINES}}
Sends Enter afterwards.
Run: tail -{{LINES}} /var/log/asterisk/messages
1 step · 1 input
tail -{{LINES}} /var/log/asterisk/messages
Sends Enter afterwards.
Run: ps aux | grep [a]sterisk
1 step
ps aux | grep [a]sterisk
Sends Enter afterwards.
Run: systemctl status asterisk --no-pager
1 step
systemctl status asterisk --no-pager
Sends Enter afterwards.
Run: df -h /var/spool/asterisk
1 step
df -h /var/spool/asterisk
Sends Enter afterwards.
Run: du -sh /var/spool/asterisk/monitor 2>/dev/null
1 step
du -sh /var/spool/asterisk/monitor 2>/dev/null
Sends Enter afterwards.
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
asterisk -rx "pjsip set logger on"
Sends Enter afterwards.
Run: asterisk -rx "pjsip set logger off"
1 step · asks for confirmation before it runs
asterisk -rx "pjsip set logger off"
Sends Enter afterwards.
Run: asterisk -rx "sip set debug peer {{EXTENSION}}"
1 step · asks for confirmation before it runs · 1 input
asterisk -rx "sip set debug peer {{EXTENSION}}"
Sends Enter afterwards.
Run: asterisk -rx "sip set debug off"
1 step · asks for confirmation before it runs
asterisk -rx "sip set debug off"
Sends Enter afterwards.
Run: asterisk -rx "core set verbose {{LEVEL}}"
1 step · asks for confirmation before it runs · 1 input
asterisk -rx "core set verbose {{LEVEL}}"
Sends Enter afterwards.
Run: asterisk -rx "dialplan reload"
1 step · asks for confirmation before it runs
asterisk -rx "dialplan reload"
Sends Enter afterwards.
Run: asterisk -rx "queue reload all"
1 step · asks for confirmation before it runs
asterisk -rx "queue reload all"
Sends Enter afterwards.
Run: asterisk -rx "logger rotate"
1 step · asks for confirmation before it runs
asterisk -rx "logger rotate"
Sends Enter afterwards.
Run: asterisk -rx "core reload"
2 steps · asks for confirmation before it runs
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.
asterisk -rx "core reload"
Sends Enter afterwards.
Run: asterisk -rx "core restart gracefully"
2 steps · asks for confirmation before it runs
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.
asterisk -rx "core restart gracefully"
Sends Enter afterwards.
Run: asterisk -rx "core restart when convenient"
2 steps · asks for confirmation before it runs
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.
asterisk -rx "core restart when convenient"
Sends Enter afterwards.
Run: asterisk -rx "core restart now"
2 steps · asks for confirmation before it runs
Asks yes or no: “Restart Asterisk immediately. Every call in progress is cut off mid-conversation. Continue?”
Answering no stops the script here.
asterisk -rx "core restart now"
Sends Enter afterwards.
Run: asterisk -rx "core stop gracefully"
2 steps · asks for confirmation before it runs
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.
asterisk -rx "core stop gracefully"
Sends Enter afterwards.
Sign in to report it, or email abuse@smartcomrevisited.com.