mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 11:13:09 +00:00
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
This commit is contained in:
@@ -460,7 +460,7 @@ static int test_vm_api_create_voicemail_files(const char *context, const char *m
|
||||
folder_path, snapshot->msg_number);
|
||||
snprintf(snd_path, sizeof(snd_path), "%s/msg%04u.gsm",
|
||||
folder_path, snapshot->msg_number);
|
||||
snprintf(beep_path, sizeof(beep_path), "%s/sounds/en/beep.gsm", ast_config_AST_VAR_DIR);
|
||||
snprintf(beep_path, sizeof(beep_path), "%s/sounds/en/beep.gsm", ast_config_AST_DATA_DIR);
|
||||
|
||||
if (test_vm_api_create_voicemail_folder(folder_path)) {
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user