Summary:ASTERISK-12932: [branch] Add CLI aliases module to asterisk
Reporter:Michiel van Baak (mvanbaak)Labels:
Date Opened:2008-10-18 09:17:21Date Closed:2008-11-12 00:46:12.000-0600
Versions:Frequency of
Description:res_clialiases is a module that makes it possible to alias CLI commands.
For example: you can make 'core stop now' available under 'die' by putting this line in /etc/asterisk/clialiases.conf (under the template section you loaded):
die = core stop now


This module is created by file and updated/tested/completed during devcon2008 by lmadsen, junky and me.
The patch attached to 13733 is in this branch so the clialiases.conf file is reloaded once asterisk is completely loaded.

Please test, so we can get it in in time for 1.6.2
Comments:By: Michiel van Baak (mvanbaak) 2008-10-18 09:17:58

You can checkout the branch:
svn co http://svn.digium.com/svn/asterisk/team/group/res_clialiases

By: Michiel van Baak (mvanbaak) 2008-10-20 02:56:38

After discussing this on irc with file and eliel I created a second branch.
In this new branch we dont check if the command we are going to alias is registered to asterisk. This will allow one to create aliases for modules that will be loaded after asterisk has started.
The config format is the same.

Checkout the branch: svn co http://svn.digium.com/svn/asterisk/team/mvanbaak/res_clialiases_unconditional

Let me know which one should be merged to trunk.

By: Michiel van Baak (mvanbaak) 2008-10-20 03:02:40

It appears the public svn mirror is not in sync at the moment.
So you cant checkout the branches right now.

Stay tuned, I'll post a note when it's available.

By: Michiel van Baak (mvanbaak) 2008-10-31 04:50:07

Please test.
The public svn mirror has been online for some time now and it's up-to-date.

By: Digium Subversion (svnbot) 2008-11-12 00:46:12.000-0600

Repository: asterisk
Revision: 156120

U   trunk/CHANGES
U   trunk/channels/chan_mgcp.c
U   trunk/channels/chan_sip.c
U   trunk/channels/chan_skinny.c
A   trunk/configs/cli_aliases.conf.sample
U   trunk/funcs/func_devstate.c
U   trunk/include/asterisk/cli.h
U   trunk/main/asterisk.c
U   trunk/main/cdr.c
U   trunk/main/cli.c
U   trunk/main/pbx.c
U   trunk/main/rtp.c
U   trunk/main/udptl.c
U   trunk/pbx/pbx_ael.c
U   trunk/pbx/pbx_dundi.c
U   trunk/res/res_agi.c
A   trunk/res/res_clialiases.c
U   trunk/res/res_jabber.c

r156120 | mvanbaak | 2008-11-12 00:46:12 -0600 (Wed, 12 Nov 2008) | 16 lines

This commit does two things:
- Add CLI aliases module to asterisk.
- Remove all deprecated CLI commands from the code

Initial work done by file.
Junk-Y and lmadsen did a lot of work and testing to
get the list of deprecated commands into the configuration file.

Deprecated CLI commands are now handled by this new module,
see cli_aliases.conf for more info about that.

ok russellb@ via reviewboard

(closes issue ASTERISK-12932)
Reported by: mvanbaak