[asterisk-commits] file: branch 1.2 r45691 -
/branches/1.2/apps/app_externalivr.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Oct 19 10:16:37 MST 2006
Author: file
Date: Thu Oct 19 12:16:37 2006
New Revision: 45691
URL: http://svn.digium.com/view/asterisk?rev=45691&view=rev
Log:
Respect language selection when seeing if the file exists (issue #8178 reported by mnicholson)
Modified:
branches/1.2/apps/app_externalivr.c
Modified: branches/1.2/apps/app_externalivr.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_externalivr.c?rev=45691&r1=45690&r2=45691&view=diff
==============================================================================
--- branches/1.2/apps/app_externalivr.c (original)
+++ branches/1.2/apps/app_externalivr.c Thu Oct 19 12:16:37 2006
@@ -447,7 +447,7 @@
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 @@
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");
More information about the asterisk-commits
mailing list