[asterisk-commits] trunk r21451 - /trunk/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Apr 19 06:59:36 MST 2006


Author: rizzo
Date: Wed Apr 19 08:59:34 2006
New Revision: 21451

URL: http://svn.digium.com/view/asterisk?rev=21451&view=rev
Log:
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!


Modified:
    trunk/asterisk.c

Modified: trunk/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/asterisk.c?rev=21451&r1=21450&r2=21451&view=diff
==============================================================================
--- trunk/asterisk.c (original)
+++ trunk/asterisk.c Wed Apr 19 08:59:34 2006
@@ -155,6 +155,8 @@
   Some of them can be changed in the CLI 
  */
 /*! @{ */
+
+extern int ast_language_is_prefix;	/* XXX move to some header */
 
 struct ast_flags ast_options = { AST_DEFAULT_OPTIONS };
 
@@ -2131,6 +2133,8 @@
 			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;
 	}



More information about the asterisk-commits mailing list