mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 12:12:48 +00:00
Merge "core: Fix configuration of remote console socket path." into 13
This commit is contained in:
@@ -3773,7 +3773,6 @@ static void ast_readconfig(void)
|
|||||||
ast_copy_string(cfg_paths.agi_dir, v->value, sizeof(cfg_paths.agi_dir));
|
ast_copy_string(cfg_paths.agi_dir, v->value, sizeof(cfg_paths.agi_dir));
|
||||||
} else if (!strcasecmp(v->name, "astrundir")) {
|
} else if (!strcasecmp(v->name, "astrundir")) {
|
||||||
snprintf(cfg_paths.pid_path, sizeof(cfg_paths.pid_path), "%s/%s", v->value, "asterisk.pid");
|
snprintf(cfg_paths.pid_path, sizeof(cfg_paths.pid_path), "%s/%s", v->value, "asterisk.pid");
|
||||||
snprintf(cfg_paths.socket_path, sizeof(cfg_paths.socket_path), "%s/%s", v->value, ast_config_AST_CTL);
|
|
||||||
ast_copy_string(cfg_paths.run_dir, v->value, sizeof(cfg_paths.run_dir));
|
ast_copy_string(cfg_paths.run_dir, v->value, sizeof(cfg_paths.run_dir));
|
||||||
} else if (!strcasecmp(v->name, "astmoddir")) {
|
} else if (!strcasecmp(v->name, "astmoddir")) {
|
||||||
ast_copy_string(cfg_paths.module_dir, v->value, sizeof(cfg_paths.module_dir));
|
ast_copy_string(cfg_paths.module_dir, v->value, sizeof(cfg_paths.module_dir));
|
||||||
@@ -3782,6 +3781,10 @@ static void ast_readconfig(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Combine astrundir and astctl settings. */
|
||||||
|
snprintf(cfg_paths.socket_path, sizeof(cfg_paths.socket_path), "%s/%s",
|
||||||
|
ast_config_AST_RUN_DIR, ast_config_AST_CTL);
|
||||||
|
|
||||||
for (v = ast_variable_browse(cfg, "options"); v; v = v->next) {
|
for (v = ast_variable_browse(cfg, "options"); v; v = v->next) {
|
||||||
/* verbose level (-v at startup) */
|
/* verbose level (-v at startup) */
|
||||||
if (!strcasecmp(v->name, "verbose")) {
|
if (!strcasecmp(v->name, "verbose")) {
|
||||||
|
Reference in New Issue
Block a user