aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-19 17:16:37 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-19 17:16:37 +0000
commit05fe0a9a08212696283f2092507dc52fab3a9e83 (patch)
tree6a222f3aaf82dd76185f879d21f6a8c687394e14 /apps
parent7507f195859c839083faf9b4e1232a10e6835f1c (diff)
Respect language selection when seeing if the file exists (issue #8178 reported by mnicholson)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@45691 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_externalivr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c
index b61ddd99a..5d27f9b3c 100644
--- a/apps/app_externalivr.c
+++ b/apps/app_externalivr.c
@@ -447,7 +447,7 @@ static int app_exec(struct ast_channel *chan, void *data)
continue;
if (input[0] == 'S') {
- if (ast_fileexists(&input[2], NULL, NULL) == -1) {
+ if (ast_fileexists(&input[2], NULL, u->chan->language) == -1) {
ast_chan_log(LOG_WARNING, chan, "Unknown file requested '%s'\n", &input[2]);
send_child_event(child_events, 'Z', NULL, chan);
strcpy(&input[2], "exception");
@@ -466,7 +466,7 @@ static int app_exec(struct ast_channel *chan, void *data)
AST_LIST_INSERT_TAIL(&u->playlist, entry, list);
AST_LIST_UNLOCK(&u->playlist);
} else if (input[0] == 'A') {
- if (ast_fileexists(&input[2], NULL, NULL) == -1) {
+ if (ast_fileexists(&input[2], NULL, u->chan->language) == -1) {
ast_chan_log(LOG_WARNING, chan, "Unknown file requested '%s'\n", &input[2]);
send_child_event(child_events, 'Z', NULL, chan);
strcpy(&input[2], "exception");