diff options
Diffstat (limited to 'main/file.c')
-rw-r--r-- | main/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/file.c b/main/file.c index c6262bf89..cd6afb9bd 100644 --- a/main/file.c +++ b/main/file.c @@ -1118,12 +1118,11 @@ int ast_waitstream_exten(struct ast_channel *c, const char *context) * Return 0 if success, -1 if error, digit if interrupted by a digit. * If digits == "" then we can simply check for non-zero. */ -int ast_stream_and_wait(struct ast_channel *chan, const char *file, - const char *language, const char *digits) +int ast_stream_and_wait(struct ast_channel *chan, const char *file, const char *digits) { int res = 0; if (!ast_strlen_zero(file)) { - res = ast_streamfile(chan, file, language); + res = ast_streamfile(chan, file, chan->language); if (!res) res = ast_waitstream(chan, digits); } |