mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 02:57:23 +00:00
This update fulfils the request of bug 7109, which claimed the language arg to ast_stream_and_wait() was redundant. Almost all calls just used chan->language, and seeing how chan is the first argument, this certainly seems redundant. A change of language could just as easily be done by simply changing the channel language before calling.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user