summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/musiconhold.conf.sample2
-rw-r--r--res/res_musiconhold.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/configs/musiconhold.conf.sample b/configs/musiconhold.conf.sample
index 714e26403..9147588f1 100644
--- a/configs/musiconhold.conf.sample
+++ b/configs/musiconhold.conf.sample
@@ -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:
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 6024e9da8..f0ef9b88c 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1022,7 +1022,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 {