[Home]

Summary:ASTERISK-26582: Asterisk seems to ignore the "n" parameter for "disable console colorization"
Reporter:Sebastian Gutierrez (sum)Labels:
Date Opened:2016-11-11 09:22:11.000-0600Date Closed:2022-04-27 11:38:22
Priority:TrivialRegression?
Status:Closed/CompleteComponents:
Versions:13.12.1 13.12.2 Frequency of
Occurrence
Related
Issues:
causesASTERISK-30097 console: Recent documentation changes for connecting to remote console are inconsistent
Environment:Attachments:( 0) Screen_Shot_2016-11-11_at_12.15.52.png
( 1) Screen_Shot_2016-11-13_at_23.01.39.png
Description:when doing asterisk -rnx "queue show" or any command, colorization is still there

[Edit by Rusty - Happens at the Linux shell and Asterisk CLI"
Comments:By: Asterisk Team (asteriskteam) 2016-11-11 09:22:11.714-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Rusty Newton (rnewton) 2016-11-13 09:16:55.832-0600

You are not viewing this output on the Asterisk console. You are outputting it to your shell.

Is your shell performing syntax highlighting?

Can you attach a screenshot of the same command run from the Asterisk console as well as the shell?

By: Sebastian Gutierrez (sum) 2016-11-13 20:03:29.854-0600

you mean like this?


By: Rusty Newton (rnewton) 2016-11-18 17:14:41.590-0600

I confirmed that it happens everywhere for me too. You may want to add your environment to the issue as well, in case it is environment related.

By: Sebastian Gutierrez (sum) 2016-11-20 17:13:58.447-0600

Ubuntu 16.04


By: Rusty Newton (rnewton) 2016-11-28 13:33:56.170-0600

So, thanks to [~sgriepentrog] for letting me know. This parameter should work when you use it with the execution of Asterisk for startup, but not for remote console re-connection.

That is, it should work with :
{noformat}
asterisk -n
{noformat}

But, not work with other asterisk commands, for instance:
{noformat}
asterisk -rn
{noformat}

However, it at least is still a documentation issue as the man page doesn't specify when it can or can't be used.

Of course, if someone wanted to provide a patch to improve the behavior that would be acceptable as well.

By: Friendly Automation (friendly-automation) 2022-04-27 11:38:23.758-0500

Change 18473 merged by Joshua Colp:
asterisk.c: Warn of incompatibilities with remote console.

[https://gerrit.asterisk.org/c/asterisk/+/18473|https://gerrit.asterisk.org/c/asterisk/+/18473]

By: Friendly Automation (friendly-automation) 2022-04-27 11:39:23.627-0500

Change 18474 merged by Joshua Colp:
asterisk.c: Warn of incompatibilities with remote console.

[https://gerrit.asterisk.org/c/asterisk/+/18474|https://gerrit.asterisk.org/c/asterisk/+/18474]

By: Friendly Automation (friendly-automation) 2022-04-27 12:38:24.974-0500

Change 18184 merged by Joshua Colp:
asterisk.c: Warn of incompatibilities with remote console.

[https://gerrit.asterisk.org/c/asterisk/+/18184|https://gerrit.asterisk.org/c/asterisk/+/18184]

By: Friendly Automation (friendly-automation) 2022-04-27 12:39:06.153-0500

Change 18475 merged by Joshua Colp:
asterisk.c: Warn of incompatibilities with remote console.

[https://gerrit.asterisk.org/c/asterisk/+/18475|https://gerrit.asterisk.org/c/asterisk/+/18475]