[asterisk-commits] tzafrir: branch 1.6.2 r292049 - in /branches/1.6.2: configs/ res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Oct 16 05:03:10 CDT 2010


Author: tzafrir
Date: Sat Oct 16 05:03:04 2010
New Revision: 292049

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=292049
Log:
Base directory for MOH should be ASTDATADIR

If the directive 'directory' is relative, make it relative to the
datadir, rather than to the varlibdir. In the sample configuration
it is relative ('moh').

This has no effect unless you have actively set the datadir explicitly
(at build time or at run time).

(closes issue #16906)
Patches:
      moh_datadir uploaded by tzafrir (license 46)

Review: https://reviewboard.asterisk.org/r/974/

Modified:
    branches/1.6.2/configs/musiconhold.conf.sample
    branches/1.6.2/res/res_musiconhold.c

Modified: branches/1.6.2/configs/musiconhold.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/configs/musiconhold.conf.sample?view=diff&rev=292049&r1=292048&r2=292049
==============================================================================
--- branches/1.6.2/configs/musiconhold.conf.sample (original)
+++ branches/1.6.2/configs/musiconhold.conf.sample Sat Oct 16 05:03:04 2010
@@ -31,7 +31,7 @@
 ;
 ; The path specified can be either an absolute path (starts with '/'),
 ; or a relative path; relative paths are interpreted as being relative
-; to the 'astvarlibdir' in asterisk.conf, which defaults to
+; to the 'astdatalibdir' in asterisk.conf, which defaults to
 ; /var/lib/asterisk.
 ;
 ; NOTE:

Modified: branches/1.6.2/res/res_musiconhold.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/res/res_musiconhold.c?view=diff&rev=292049&r1=292048&r2=292049
==============================================================================
--- branches/1.6.2/res/res_musiconhold.c (original)
+++ branches/1.6.2/res/res_musiconhold.c Sat Oct 16 05:03:04 2010
@@ -989,7 +989,7 @@
 	int i;
 
 	if (class->dir[0] != '/') {
-		ast_copy_string(dir_path, ast_config_AST_VAR_DIR, sizeof(dir_path));
+		ast_copy_string(dir_path, ast_config_AST_DATA_DIR, sizeof(dir_path));
 		strncat(dir_path, "/", sizeof(dir_path) - 1);
 		strncat(dir_path, class->dir, sizeof(dir_path) - 1);
 	} else {




More information about the asterisk-commits mailing list