[asterisk-commits] tzafrir: branch 10 r335717 - /branches/10/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 13 16:38:01 CDT 2011


Author: tzafrir
Date: Tue Sep 13 16:37:58 2011
New Revision: 335717

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=335717
Log:
do parse defaultlanguage from asterisk.conf

Do parse the option "defaultlanguage" from the [options] section of
asterisk.conf, as in the sample config file. Otherwise the build-time
default language (normally "en") is always the default one.

Review: https://reviewboard.asterisk.org/r/1342/
Signed-off-by: Tzafrir Cohen (License #5035) <tzafrir.cohen at xorcom.com>
Original-Commit: http://svn.digium.com/svn/asterisk/branches/1.8@335716

Modified:
    branches/10/main/asterisk.c

Modified: branches/10/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/asterisk.c?view=diff&rev=335717&r1=335716&r2=335717
==============================================================================
--- branches/10/main/asterisk.c (original)
+++ branches/10/main/asterisk.c Tue Sep 13 16:37:58 2011
@@ -3055,6 +3055,8 @@
 			}
 		} else if (!strcasecmp(v->name, "languageprefix")) {
 			ast_language_is_prefix = ast_true(v->value);
+		} else if (!strcasecmp(v->name, "defaultlanguage")) {
+			ast_copy_string(defaultlanguage, v->value, MAX_LANGUAGE);
  		} else if (!strcasecmp(v->name, "lockmode")) {
  			if (!strcasecmp(v->value, "lockfile")) {
  				ast_set_lock_type(AST_LOCK_TYPE_LOCKFILE);




More information about the asterisk-commits mailing list