[asterisk-bugs] [JIRA] Commented: (ASTERISK-20281) "core set verbose" behaves strangely, can't alias it, cli.conf example broken

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Oct 4 13:46:27 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197981#comment-197981 ] 

Matt Jordan commented on ASTERISK-20281:
----------------------------------------

We went ahead and updated the [Upgrading to Asterisk 11|https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11] notes on the wiki to note this limitation.  As it turns out, adding the ability to specify the verbosity on the remote console did not adequately take into account CLI aliases, and fixing that is going to be tricky.  For now, I'd prefer to make sure everyone is aware of the problem, and take our time making sure we get the solution correct before implementing it in Asterisk 11.

Sort of a long winded way of saying this may take a bit :-)



> "core set verbose" behaves strangely, can't alias it, cli.conf example broken
> -----------------------------------------------------------------------------
>
>                 Key: ASTERISK-20281
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20281
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_clialiases
>    Affects Versions: 11.0.0-beta1
>            Reporter: Tim Ringenbach at Asteria Solutions Group
>            Severity: Minor
>
> I ran into some problems with 'core set verbose' that really confused me for a while.
> It looks like in asterisk 11, there's now two versions of this command, one inside rasterisk and one in asterisk itself.
> The first thing I did "wrong" was create an alias in cli_aliases.conf "set verbose=core set verbose". This caused two different versions of the command to be exposed to me, depending on whether or not I used the "core" prefix. This was very confusing, since one was aliased to the other.
> Also, I tried uncommenting the 'core set verbose 3 = yes' line in cli.conf. This doesn't work anymore.
> Eventually I figured out that there's two versions of the command in asterisk now, one in asterisk.c and one in cli.conf. Reading the one in asterisk.conf, I figured out that I needed to edit /etc/asterisk/asterisk.conf to set a default verbose level.
> So, I think we need to either somehow make the expected behavior work, or remove the cli.conf example, maybe put a warning there not to do that, and warn/disallow aliasing it. And maybe remove the duplicate function, but that's tricky because it's also the 'core set debug' command, which I believe is still implemented only in cli.conf and not handled by the rasterisk client.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list