diff options
author | Joshua Colp <jcolp@digium.com> | 2006-04-15 22:53:53 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-04-15 22:53:53 +0000 |
commit | 4657dc770c01b6cd4f86abb57b08f283523fbcd5 (patch) | |
tree | 296383c1155d0fa39668e6028e41884b18443dd4 /app.c | |
parent | 8a5436c72f026b99a6f13deb993b318673edeb31 (diff) |
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
Diffstat (limited to 'app.c')
-rw-r--r-- | app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -414,7 +414,7 @@ int ast_linear_stream(struct ast_channel *chan, const char *filename, int fd, in if (filename[0] == '/') ast_copy_string(tmpf, filename, sizeof(tmpf)); else - snprintf(tmpf, sizeof(tmpf), "%s/%s/%s", (char *)ast_config_AST_VAR_DIR, "sounds", filename); + snprintf(tmpf, sizeof(tmpf), "%s/%s/%s", (char *)ast_config_AST_DATA_DIR, "sounds", filename); fd = open(tmpf, O_RDONLY); if (fd < 0){ ast_log(LOG_WARNING, "Unable to open file '%s': %s\n", tmpf, strerror(errno)); |