openbsd-ports/telephony/asterisk/patches/patch-main_asterisk_c

12 lines
742 B
Plaintext
Raw Normal View History

$OpenBSD: patch-main_asterisk_c,v 1.10 2009/05/22 09:05:10 sthen Exp $
--- main/asterisk.c.orig Thu Apr 9 05:31:38 2009
+++ main/asterisk.c Thu May 21 21:22:19 2009
@@ -2552,6 +2552,7 @@ static void ast_readconfig(void)
snprintf(ast_config_AST_MONITOR_DIR, sizeof(ast_config_AST_MONITOR_DIR) - 1, "%s/monitor", v->value);
} else if (!strcasecmp(v->name, "astvarlibdir")) {
ast_copy_string(ast_config_AST_VAR_DIR, v->value, sizeof(ast_config_AST_VAR_DIR));
+ } else if (!strcasecmp(v->name, "astdbdir")) {
snprintf(ast_config_AST_DB, sizeof(ast_config_AST_DB), "%s/astdb", v->value);
} else if (!strcasecmp(v->name, "astdatadir")) {
ast_copy_string(ast_config_AST_DATA_DIR, v->value, sizeof(ast_config_AST_DATA_DIR));