]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
add default alias reload to run module reload.
authorMichiel van Baak <michiel@vanbaak.info>
Sat, 25 Jul 2009 12:03:25 +0000 (12:03 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Sat, 25 Jul 2009 12:03:25 +0000 (12:03 +0000)
Requiring 'module reload' to reload everything, including
core etc makes russell very unhappy.

The default configuration already loads the 'friendly' aliases template.
Added 'reload=module reload' to that template.

Also removed the comment in main/cli.c that reload should come back.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208813 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configs/cli_aliases.conf.sample
main/cli.c

index 1d9cd9107d7948c6a0751942728c2d1a8d6bc1e1..79e49b2d705a0c01592bed55ff116ca2630b17e4 100644 (file)
@@ -27,6 +27,7 @@ hangup request=channel request hangup
 originate=channel originate
 help=core show help
 pri intense debug span=pri set debug 2 span
+reload=module reload
 
 ; CLI Alias Templates
 ; -------------------
index b6e99834c67fc3bbefed71367d3af26fc86786bd..f3e3e6e2277bdd861efaa0b1dd3a844b33fb5b75 100644 (file)
@@ -266,11 +266,6 @@ static char *handle_load(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
        return CLI_SUCCESS;
 }
 
-/*!
- * \bug The command "reload" needs to be re-added.  Requiring "module reload" to reload everything,
- *      including core stuff, doesn't really make sense.  Adding a "core reload" to reload everything,
- *      including modules, also doesn't really make sense.  So, we should put "reload" back.
- */
 static char *handle_reload(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
        int x;