diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-02 20:45:24 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-02 20:45:24 +0000 |
commit | a0c4cf53bd148f54d8d97719b4aee56b1dd3afe9 (patch) | |
tree | b0a3695c1cd90f04425d73c74960c0b43edff3bc /cli.c | |
parent | 25166a4ab6e2609e01ac28282c3a538d1cdab1fa (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-x | cli.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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; } |