From 2745be5b2678a586522377b5e1ac4a4cf90e1ec6 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo <rizzo@icir.org> Date: Wed, 19 Apr 2006 13:59:34 +0000 Subject: [PATCH] support 'languageprefix' in asterisk.conf to modify the algorithm to build pathnames for language-specific files (see file.c for a description) Default, of course, to the standard behaviour. We don't have an asterisk.conf.sample to put an example of use! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21451 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- asterisk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asterisk.c b/asterisk.c index 2db0ea67d3..90bd912021 100644 --- a/asterisk.c +++ b/asterisk.c @@ -156,6 +156,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") */ /*! @{ */ +extern int ast_language_is_prefix; /* XXX move to some header */ + struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }; int option_verbose = 0; /*!< Verbosity level */ @@ -2131,6 +2133,8 @@ static void ast_readconfig(void) ast_copy_string(ast_config_AST_RUN_DIR, v->value, sizeof(ast_config_AST_RUN_DIR)); } else if (!strcasecmp(v->name, "astmoddir")) { ast_copy_string(ast_config_AST_MODULE_DIR, v->value, sizeof(ast_config_AST_MODULE_DIR)); + } else if (!strcasecmp(v->name, "languageprefix")) { + ast_language_is_prefix = ast_true(v->value); } v = v->next; } -- GitLab