aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 21:18:27 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 21:18:27 +0000
commitab7096022bf857c49d3c98a6275c19d6f750b869 (patch)
tree0ee6a9b23db4f2dd5ba133a9f49a66824c66fca2 /main
parentf16e0a15b8d2b1fdea85fcc3b0528992baf545e7 (diff)
make the 'languageprefix' option default to on, and deprecate turning it off
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49000 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/asterisk.c3
-rw-r--r--main/file.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 86da7b17e..5a393397b 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -2491,6 +2491,9 @@ int main(int argc, char *argv[])
ast_verbose("[ Reading Master Configuration ]\n");
ast_readconfig();
+ if (!ast_language_is_prefix && !ast_opt_remote)
+ ast_log(LOG_WARNING, "The 'languageprefix' option in asterisk.conf is deprecated; in a future release it will be removed, and your sound files will need to be organized in the 'new style' language layout.\n");
+
if (ast_opt_dump_core) {
struct rlimit l;
memset(&l, 0, sizeof(l));
diff --git a/main/file.c b/main/file.c
index 5311b3a43..748814194 100644
--- a/main/file.c
+++ b/main/file.c
@@ -61,7 +61,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
* (i.e. en/digits/1.gsm, it/digits/1.gsm or default to digits/1.gsm).
* The latter permits a language to be entirely in one directory.
*/
-int ast_language_is_prefix = 0;
+int ast_language_is_prefix = 1;
static AST_LIST_HEAD_STATIC(formats, ast_format);