diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-03 14:02:12 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-03 14:02:12 +0000 |
commit | bfb57d8289265aa583cee18d7e4a48c8970c5578 (patch) | |
tree | 47ec8abb26d065351b745da5075c75be6780d1c9 | |
parent | cbe157ff02ad552a144b97ad8ad7a49c88d67102 (diff) |
reload documentation, don't display res in app_test...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3718 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_test.c | 2 | ||||
-rwxr-xr-x | cli.c | 6 | ||||
-rwxr-xr-x | loader.c | 12 |
3 files changed, 12 insertions, 8 deletions
diff --git a/apps/app_test.c b/apps/app_test.c index dab771945..98f9373e1 100755 --- a/apps/app_test.c +++ b/apps/app_test.c @@ -215,7 +215,7 @@ static int testclient_exec(struct ast_channel *chan, void *data) /* Step 6: Transmit tone noise */ ast_log(LOG_DEBUG, "TestClient: 6. Transmit tone\n"); res = sendnoise(chan, 6000); - fprintf(f, "SENDTONE: %s (%d)\n", (res < 0) ? "FAIL" : "PASS", res); + fprintf(f, "SENDTONE: %s\n", (res < 0) ? "FAIL" : "PASS"); } if (!res || (res == '5')) { /* Step 7: Wait for "5" */ @@ -82,9 +82,9 @@ static char chanlist_help[] = " a more easily machine parsable format\n"; static char reload_help[] = -"Usage: reload\n" -" Reloads configuration files for all modules which support\n" -" reloading.\n"; +"Usage: reload [module ...]\n" +" Reloads configuration files for all listed modules which support\n" +" reloading, or for all supported modules if none are listed.\n"; static char set_verbose_help[] = "Usage: set verbose <level>\n" @@ -157,10 +157,14 @@ void ast_module_reload(const char *name) ast_verbose("The previous reload command didn't finish yet\n"); return; } - read_ast_cust_config(); - reload_manager(); - ast_enum_reload(); - ast_rtp_reload(); + if (!name || !strcasecmp(name, "astconfig")) + read_ast_cust_config(); + if (!name || !strcasecmp(name, "manager")) + reload_manager(); + if (!name || !strcasecmp(name, "enum")) + ast_enum_reload(); + if (!name || !strcasecmp(name, "rtp")) + ast_rtp_reload(); time(&ast_lastreloadtime); ast_mutex_lock(&modlock); |