From: InterLinked1 <24227567+InterLinked1@users.noreply.github.com> Date: Mon, 22 May 2023 18:59:56 +0000 (-0400) Subject: asterisk.c: Fix option warning for remote console. (#103) X-Git-Tag: 21.0.0-pre1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad6ff4cbf26960f159e94a9b3de58cc7245e6034;p=thirdparty%2Fasterisk.git asterisk.c: Fix option warning for remote console. (#103) Commit 09e989f972e2583df4e9bf585c246c37322d8d2f categorized the T option as not being compatible with remote consoles, but they do affect verbose messages with remote console. This fixes this. Resolves: #102 --- diff --git a/doc/asterisk.8 b/doc/asterisk.8 index ef780778c2..c3bc6d1546 100644 --- a/doc/asterisk.8 +++ b/doc/asterisk.8 @@ -196,8 +196,7 @@ 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. Can only be -used at startup (e.g. not with remote console mode). +when running with verbose and/or logging to the console. .TP \-U \fIuser\fR Run as user \fIuser\fR instead of the diff --git a/main/asterisk.c b/main/asterisk.c index dea849f10c..f96f6b2cad 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3755,6 +3755,7 @@ int main(int argc, char *argv[]) case 'r': /* remote */ /*! \note Can ONLY be used with remote console */ case 's': /* set socket path */ + case 'T': /* timestamp */ case 'V': /* version */ case 'v': /* verbose */ case 'W': /* white background */ @@ -3772,7 +3773,6 @@ int main(int argc, char *argv[]) case 'i': /* init keys */ case 'n': /* no color */ case 'p': /* high priority */ - case 'T': /* timestamp */ case 't': /* cache record files */ case 'U': /* run user */ fprintf(stderr, "'%c' option is not compatible with remote console mode and has no effect.\n", c);