Don't try to look offhook with channel banks & Loopstart (bug #2362), also make individual modules reloadable...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-09-02 20:45:24 +00:00
parent 93818c761b
commit fd7577eed2
5 changed files with 25 additions and 14 deletions

9
cli.c
View File

@@ -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;
}