asterisk.c: Warn of incompatibilities with remote console.

Some command line options to Asterisk only apply when Asterisk
is started and cannot be used with remote console mode. If a
user tries to use any of these, they are currently simply
silently ignored.

This prints out a warning if incompatible options are used,
informing users that an option used cannot be used with remote
console mode. Additionally, some clarifications are added to
the help text and man page.

ASTERISK-22246
ASTERISK-26582

Change-Id: I980a5380ef2c19e8ea348596396d5382893c4337
This commit is contained in:
Naveen Albert
2022-03-05 11:43:13 +00:00
committed by Joshua Colp
parent 45ed328d08
commit 7d80c8a49c
2 changed files with 54 additions and 3 deletions

View File

@@ -158,6 +158,7 @@ too many simultaneous calls.
.TP
\-n
Disable ANSI colors even on terminals capable of displaying them.
This option can be used only at startup (e.g. not with remote console).
.TP
\-p
If supported by the operating system (and executing as root),
@@ -195,7 +196,8 @@ then move them into the final location when done.
.TP
\-T
Add timestamp to all non-command related output going to the console
when running with verbose and/or logging to the console.
when running with verbose and/or logging to the console. Can only be
used at startup (e.g. not with remote console mode).
.TP
\-U \fIuser\fR
Run as user \fIuser\fR instead of the