aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-19 13:59:34 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-19 13:59:34 +0000
commitfdc5c40dadfd4aae0d954ea49c38e4a90834675b (patch)
tree37749aca7f072ab11a2de53313173c2ba32b9085 /asterisk.c
parent27af7fef710e3d65c4cb6989365b7f253e121561 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@21451 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rw-r--r--asterisk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c
index 2db0ea67d..90bd91202 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;
}