aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorpabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-12 20:01:39 +0000
committerpabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-12 20:01:39 +0000
commitf842f49a51c175fc2f785d994b1cc45605e17c6d (patch)
treeda61af04d1e2d9f912408d09a26b2e424434f079 /main/cli.c
parent7ada7a8ee299ad6c93f161d0f5c4807cfee25fb1 (diff)
Merged revisions 262800 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r262800 | pabelanger | 2010-05-12 15:59:16 -0400 (Wed, 12 May 2010) | 8 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.2@262801 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c
index e411c0da9..72e3000e0 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;
}
@@ -582,7 +583,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;
}