From d7329034ea33d10aeb3781caa39f95d6d54f01d5 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 19 Oct 2006 17:19:47 +0000 Subject: [PATCH] Merged revisions 45691 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r45691 | file | 2006-10-19 13:16:37 -0400 (Thu, 19 Oct 2006) | 2 lines Respect language selection when seeing if the file exists (issue #8178 reported by mnicholson) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45692 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_externalivr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index e81f4f34f6..7929a02382 100644 --- a/apps/app_externalivr.c +++ b/apps/app_externalivr.c @@ -445,7 +445,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"); @@ -464,7 +464,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");