We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-04-15 22:53:53 +00:00
parent 8a5436c72f
commit 4657dc770c
9 changed files with 43 additions and 33 deletions

2
file.c
View File

@@ -261,7 +261,7 @@ static char *build_filename(const char *filename, const char *ext)
asprintf(&fn, "%s.%s", filename, ext);
else
asprintf(&fn, "%s/sounds/%s.%s",
ast_config_AST_VAR_DIR, filename, ext);
ast_config_AST_DATA_DIR, filename, ext);
return fn;
}