diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2017-01-21 22:43:48 +0200 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2017-01-22 01:52:21 +0200 |
commit | dbb9c8141d2a72b36334b7e9044a4fe06217c0f1 (patch) | |
tree | 1100a2731a4d34053a94a7dc8560011ef082676d /apps/app_voicemail.c | |
parent | b4fa17f51637f3e3fe9e46cbc29690ea867aca09 (diff) |
tests: use datadir for sound files
Some (voicemail-related) tests API symlinks beep.gsm and other files
from ast_config_AST_VAR_DIR. It should use ast_config_AST_DATA_DIR.
ASTERISK-26740 #close
Change-Id: Id49c56fb9e16df64b1a2b829693ca7601252df89
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 03273c69b..37f8aa96f 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -14393,7 +14393,7 @@ AST_TEST_DEFINE(test_voicemail_vmsayname) ast_log(AST_LOG_WARNING, "Failed to make test directory\n"); goto exit_vmsayname_test; } - snprintf(dir, sizeof(dir), "%s/sounds/beep.gsm", ast_config_AST_VAR_DIR); + snprintf(dir, sizeof(dir), "%s/sounds/beep.gsm", ast_config_AST_DATA_DIR); snprintf(dir2, sizeof(dir2), "%s%s/%s/greet.gsm", VM_SPOOL_DIR, TEST_CONTEXT, TEST_EXTENSION); /* we're not going to hear the sound anyway, just use a valid gsm audio file */ if ((res = symlink(dir, dir2))) { @@ -14639,8 +14639,8 @@ AST_TEST_DEFINE(test_voicemail_notify_endl) break; } - snprintf(attach, sizeof(attach), "%s/sounds/en/tt-weasels", ast_config_AST_VAR_DIR); - snprintf(attach2, sizeof(attach2), "%s/sounds/en/tt-somethingwrong", ast_config_AST_VAR_DIR); + snprintf(attach, sizeof(attach), "%s/sounds/en/tt-weasels", ast_config_AST_DATA_DIR); + snprintf(attach2, sizeof(attach2), "%s/sounds/en/tt-somethingwrong", ast_config_AST_DATA_DIR); if (!(vmu = find_user(&vmus, testcontext, testmailbox)) && !(vmu = find_or_create(testcontext, testmailbox))) { |