aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-15 22:53:53 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-15 22:53:53 +0000
commitdb5a6fcfc324f2f1d6e383d1bdcc0bcd12444eeb (patch)
tree296383c1155d0fa39668e6028e41884b18443dd4 /app.c
parentddb97bd2b53e57061116ed635c6818f6ab7ccda8 (diff)
We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20330 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rw-r--r--app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.c b/app.c
index 34209a164..395c05ccf 100644
--- a/app.c
+++ b/app.c
@@ -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));