diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2000-01-09 19:58:18 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2000-01-09 19:58:18 +0000 |
commit | f1c9aafaf37be55a354c041bb12d06a1f288307d (patch) | |
tree | 89ed2104faf17518c0da7f10c676b1fccc96c1e3 /apps/app_directory.c | |
parent | a320084f60096e46f2981f6300480f34317b508c (diff) |
Version 0.1.3 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directory.c')
-rwxr-xr-x | apps/app_directory.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index 285f1514b..be76d4b35 100755 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -156,17 +156,17 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char * if (v) { /* We have a match -- play a greeting if they have it */ snprintf(fn, sizeof(fn), "%s/vm/%s/greet", AST_SPOOL_DIR, v->name); - if (ast_fileexists(fn, NULL)) { - res = ast_streamfile(chan, fn); + if (ast_fileexists(fn, NULL, chan->language)) { + res = ast_streamfile(chan, fn, chan->language); if (!res) res = ast_waitstream(chan, AST_DIGIT_ANY); ast_stopstream(chan); } else { - res = ast_say_digit_str(chan, v->name); + res = ast_say_digit_str(chan, v->name, chan->language); } ahem: if (!res) - res = ast_streamfile(chan, "dir-instr"); + res = ast_streamfile(chan, "dir-instr", chan->language); if (!res) res = ast_waitstream(chan, AST_DIGIT_ANY); if (!res) @@ -189,9 +189,9 @@ ahem: } } else { if (found) - res = ast_streamfile(chan, "dir-nomore"); + res = ast_streamfile(chan, "dir-nomore", chan->language); else - res = ast_streamfile(chan, "dir-nomatch"); + res = ast_streamfile(chan, "dir-nomatch", chan->language); if (!res) res = 1; return res; @@ -219,7 +219,7 @@ static int directory_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); top: if (!res) - res = ast_streamfile(chan, "dir-intro"); + res = ast_streamfile(chan, "dir-intro", chan->language); if (!res) res = ast_waitstream(chan, AST_DIGIT_ANY); ast_stopstream(chan); |