/* 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" */
" 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"
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);