Summary: | ASTERISK-13198: reload of cli_aliases doesn't work | ||
Reporter: | pj (pj) | Labels: | |
Date Opened: | 2008-12-10 16:30:04.000-0600 | Date Closed: | 2008-12-10 16:48:55.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Resources/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | if I make change into cli_aliases.conf and do 'module reload res_clialiases.so' to reload config, it generates errors on cli below and causes existing aliases to stop working, 'cli show aliases' still shows all defined aliases, but if I try to use some alias, it doesn't work It can be repaired by restarting asterisk. *CLI> cli show aliases Alias Command Real Command ver core show version mem memory show summary stop core stop now sp sip show peers lck core show locks uptime core show uptime sd skinny show devices cv core show channels verbose speer sip show peer *CLI> sp No such command 'sp' (type 'core show help sp' for other possible commands) *CLI> cv No such command 'cv' (type 'core show help cv' for other possible commands) *CLI> ver No such command 'ver' (type 'core show help ver' for other possible commands) ****** ADDITIONAL INFORMATION ****** *CLI> module reload res_clialiases.so [Dec 10 23:18:59] -- Reloading module 'res_clialiases.so' (CLI Aliases) [Dec 10 23:18:59] == Parsing '/etc/asterisk/cli_aliases.conf': [Dec 10 23:18:59] == Found [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'cv' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'cv' to 'core show channels verbose' [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'sp' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'sp' to 'sip show peers' [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'speer' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'speer' to 'sip show peer' [Dec 10 23:18:59] == Aliased CLI command 'sd' to 'skinny show devices' [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'mem' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'mem' to 'memory show summary' [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'lck' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'lck' to 'core show locks' [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'stop' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'stop' to 'core stop now' [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'uptime' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'uptime' to 'core show uptime' [Dec 10 23:18:59] WARNING[26415]: cli.c:1874 __ast_cli_register: Command 'ver' already registered (or something close enough) [Dec 10 23:18:59] == Aliased CLI command 'ver' to 'core show version' | ||
Comments: | By: Digium Subversion (svnbot) 2008-12-10 16:48:54.000-0600 Repository: asterisk Revision: 162923 U trunk/res/res_clialiases.c ------------------------------------------------------------------------ r162923 | file | 2008-12-10 16:48:54 -0600 (Wed, 10 Dec 2008) | 4 lines Fix reloads of aliased CLI commands. Due to changes done to turn it into a single memory allocation we can't just use the existing CLI alias structure. We have to destroy all existing ones and then create new ones. (closes issue ASTERISK-13198) Reported by: pj ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=162923 |