Clarify PSTN tier prompts — enter extension numbers, not tier names

User feedback: reading the tier list (internal/restricted/full) right before
"Full-PSTN extensions:" read as ambiguous about whether to type the tier
word or extension numbers. Reworded both prompts to say "extension NUMBERS"
explicitly and added inline examples (e.g. '999 213').
This commit is contained in:
Claude
2026-07-23 16:44:35 +00:00
parent 526cb4a623
commit 16da6c1372
+8 -8
View File
@@ -1380,20 +1380,20 @@ install_pstn-trunk() {
# ── Permission tiers ─────────────────────────────────────────────────── # ── Permission tiers ───────────────────────────────────────────────────
echo "" echo ""
echo " Three tiers, per extension:" echo " Three PSTN permission tiers. Below, you'll enter EXTENSION NUMBERS at each"
echo " prompt (e.g. 999, 213) — never the tier name itself:"
echo " internal — call/receive other Asterisk extensions + internal ring" echo " internal — call/receive other Asterisk extensions + internal ring"
echo " groups only. No PSTN at all. Default for anything not" echo " groups only. No PSTN at all. The default for any extension"
echo " listed below." echo " not entered at either prompt below — nothing to type for it."
echo " restricted — internal, PLUS call/receive ONLY pre-approved US numbers." echo " restricted — internal, PLUS call/receive ONLY pre-approved US numbers."
echo " full — internal, PLUS call/receive ANY US number." echo " full — internal, PLUS call/receive ANY US number."
echo " These are managed LIVE after install (pstn-permissions.conf) — via the" echo " Live-editable after install (pstn-permissions.conf) — via the Security"
echo " Security Dashboard web UI if installed, or by hand — with no restart or" echo " Dashboard web UI if installed, or by hand — no restart/reinstall needed."
echo " reinstall needed to change them later."
local FULL_EXTS="" local FULL_EXTS=""
prompt_text "Full-PSTN extensions (space-separated, blank = none):" "" FULL_EXTS prompt_text "Extension NUMBERS to grant FULL PSTN access (space-separated, e.g. '999 213', blank = none):" "" FULL_EXTS
local RESTRICTED_EXTS="" local RESTRICTED_EXTS=""
prompt_text "Restricted-PSTN extensions (space-separated, blank = none):" "" RESTRICTED_EXTS prompt_text "Extension NUMBERS to grant RESTRICTED PSTN access (space-separated, e.g. '301', blank = none):" "" RESTRICTED_EXTS
local RESTRICTED_ARGS=() local RESTRICTED_ARGS=()
if [[ -n "$RESTRICTED_EXTS" ]]; then if [[ -n "$RESTRICTED_EXTS" ]]; then