From 529e1b0efbffb7de6bcbad6bfa610ab91755a934 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Sat, 16 Oct 2010 10:03:04 +0000 Subject: 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/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@292049 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index fcae10f0e..7499abde7 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -989,7 +989,7 @@ static int moh_scan_files(struct mohclass *class) { 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 { -- cgit v1.2.3