]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
asterisk.c: Fix option warning for remote console.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 18 May 2023 18:57:34 +0000 (18:57 +0000)
committerNaveen Albert <asterisk@phreaknet.org>
Mon, 22 May 2023 19:01:15 +0000 (19:01 +0000)
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

doc/asterisk.8
main/asterisk.c

index 64ea625b477b9b4edaf4b3e47e32fb607840c837..d2f83cf6a79d0e288f291f6fb7ec915d899e0928 100644 (file)
@@ -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
index dea849f10c1f0a6fdcd64ebcd9e82fcab0c43e30..f96f6b2cadddd6759a2f4e3e9c4540f6ef8ee144 100644 (file)
@@ -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);