[asterisk-bugs] [Asterisk 0014054]: reload of cli_aliases doesn't work

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 10 16:48:54 CST 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14054 
====================================================================== 
Reported By:                pj
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   14054
Category:                   Resources/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 162805 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-10 16:30 CST
Last Modified:              2008-12-10 16:48 CST
====================================================================== 
Summary:                    reload of cli_aliases doesn't work
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)


====================================================================== 

---------------------------------------------------------------------- 
 (0096154) svnbot (reporter) - 2008-12-10 16:48
 http://bugs.digium.com/view.php?id=14054#c96154 
---------------------------------------------------------------------- 
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 http://bugs.digium.com/view.php?id=14054)
Reported by: pj

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=162923 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-10 16:48 svnbot         Checkin                                      
2008-12-10 16:48 svnbot         Note Added: 0096154                          
2008-12-10 16:48 svnbot         Status                   new => assigned     
2008-12-10 16:48 svnbot         Assigned To               => file            
2008-12-10 16:48 svnbot         Status                   assigned => resolved
2008-12-10 16:48 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list