make the 'languageprefix' option default to on, and deprecate turning it off

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-12-27 21:18:27 +00:00
parent 16b09ac48c
commit afbfafa400
4 changed files with 12 additions and 2 deletions

View File

@@ -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));

View File

@@ -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);