diff options
author | Paul Belanger <paul.belanger@polybeacon.com> | 2010-05-12 19:59:16 +0000 |
---|---|---|
committer | Paul Belanger <paul.belanger@polybeacon.com> | 2010-05-12 19:59:16 +0000 |
commit | 7d53dc86d6c120b1846ff06cec2b7c4dcc2a723b (patch) | |
tree | eca9103a5fc81a6ca87744687e4c65ba1249b527 /main/cli.c | |
parent | c17cda109a995b69c38ec26a841535b4277c0f7c (diff) |
Notify CLI when modules is loaded / unloaded
(closes issue #17308)
Reported by: pabelanger
Patches:
cli.modules.patch uploaded by pabelanger (license 224)
Tested by: pabelanger, russell
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@262800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c index 99dc1b54b..acb1f6b15 100644 --- a/main/cli.c +++ b/main/cli.c @@ -263,6 +263,7 @@ static char *handle_load(struct ast_cli_entry *e, int cmd, struct ast_cli_args * ast_cli(a->fd, "Unable to load module %s\n", a->argv[e->args]); return CLI_FAILURE; } + ast_cli(a->fd, "Loaded %s\n", a->argv[e->args]); return CLI_SUCCESS; } @@ -586,7 +587,9 @@ static char *handle_unload(struct ast_cli_entry *e, int cmd, struct ast_cli_args ast_cli(a->fd, "Unable to unload resource %s\n", a->argv[x]); return CLI_FAILURE; } + ast_cli(a->fd, "Unloaded %s\n", a->argv[x]); } + return CLI_SUCCESS; } |