aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-02 20:45:24 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-02 20:45:24 +0000
commita0c4cf53bd148f54d8d97719b4aee56b1dd3afe9 (patch)
treeb0a3695c1cd90f04425d73c74960c0b43edff3bc /cli.c
parent25166a4ab6e2609e01ac28282c3a538d1cdab1fa (diff)
Don't try to look offhook with channel banks & Loopstart (bug #2362), also make individual modules reloadable...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3714 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rwxr-xr-xcli.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/cli.c b/cli.c
index 898c95555..0aaf0d2d6 100755
--- a/cli.c
+++ b/cli.c
@@ -109,9 +109,14 @@ static int handle_load(int fd, int argc, char *argv[])
static int handle_reload(int fd, int argc, char *argv[])
{
- if (argc != 1)
+ int x;
+ if (argc < 1)
return RESULT_SHOWUSAGE;
- ast_module_reload();
+ if (argc > 1) {
+ for (x=1;x<argc;x++)
+ ast_module_reload(argv[x]);
+ } else
+ ast_module_reload(NULL);
return RESULT_SUCCESS;
}