diff options
Diffstat (limited to 'main/app.c')
-rw-r--r-- | main/app.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/main/app.c b/main/app.c index b00deb885..91365f37d 100644 --- a/main/app.c +++ b/main/app.c @@ -541,7 +541,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile, if (!beep) d = ast_play_and_wait(chan, playfile); if (d > -1) - d = ast_stream_and_wait(chan, "beep", chan->language, ""); + d = ast_stream_and_wait(chan, "beep", ""); if (d < 0) return -1; } @@ -757,7 +757,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile, ast_log(LOG_WARNING, "Unable to restore format %s to channel '%s'\n", ast_getformatname(rfmt), chan->name); } if (outmsg == 2) { - ast_stream_and_wait(chan, "auth-thankyou", chan->language, ""); + ast_stream_and_wait(chan, "auth-thankyou", ""); } if (sildet) ast_dsp_free(sildet); @@ -1015,14 +1015,14 @@ int ast_record_review(struct ast_channel *chan, const char *playfile, const char cmd = '3'; break; } else { - ast_stream_and_wait(chan, "vm-msgsaved", chan->language, ""); + ast_stream_and_wait(chan, "vm-msgsaved", ""); cmd = 't'; return res; } case '2': /* Review */ ast_verbose(VERBOSE_PREFIX_3 "Reviewing the recording\n"); - cmd = ast_stream_and_wait(chan, recordfile, chan->language, AST_DIGIT_ANY); + cmd = ast_stream_and_wait(chan, recordfile, AST_DIGIT_ANY); break; case '3': message_exists = 0; @@ -1109,14 +1109,14 @@ static int ivr_dispatch(struct ast_channel *chan, struct ast_ivr_option *option, case AST_ACTION_NOOP: return 0; case AST_ACTION_BACKGROUND: - res = ast_stream_and_wait(chan, (char *)option->adata, chan->language, AST_DIGIT_ANY); + res = ast_stream_and_wait(chan, (char *)option->adata, AST_DIGIT_ANY); if (res < 0) { ast_log(LOG_NOTICE, "Unable to find file '%s'!\n", (char *)option->adata); res = 0; } return res; case AST_ACTION_PLAYBACK: - res = ast_stream_and_wait(chan, (char *)option->adata, chan->language, ""); + res = ast_stream_and_wait(chan, (char *)option->adata, ""); if (res < 0) { ast_log(LOG_NOTICE, "Unable to find file '%s'!\n", (char *)option->adata); res = 0; @@ -1145,7 +1145,7 @@ static int ivr_dispatch(struct ast_channel *chan, struct ast_ivr_option *option, res = 0; c = ast_strdupa(option->adata); while ((n = strsep(&c, ";"))) { - if ((res = ast_stream_and_wait(chan, n, chan->language, + if ((res = ast_stream_and_wait(chan, n, (option->action == AST_ACTION_BACKLIST) ? AST_DIGIT_ANY : ""))) break; } |