mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
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:
9
cli.c
9
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user