mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
Fix playback behavior to exit correctly when we receive a hangup during playback of the invalid pin message. #7091 (AntD reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1965,9 +1965,12 @@ static int conf_exec(struct ast_channel *chan, void *data)
|
||||
break;
|
||||
} else {
|
||||
/* Pin invalid */
|
||||
res = ast_streamfile(chan, "conf-invalidpin", chan->language);
|
||||
if (!res)
|
||||
ast_waitstream(chan, AST_DIGIT_ANY);
|
||||
if (!ast_streamfile(chan, "conf-invalidpin", chan->language))
|
||||
res = ast_waitstream(chan, AST_DIGIT_ANY);
|
||||
else {
|
||||
ast_log(LOG_WARNING, "Couldn't play invalid pin msg!\n");
|
||||
break;
|
||||
}
|
||||
if (res < 0)
|
||||
break;
|
||||
pin[0] = res;
|
||||
|
Reference in New Issue
Block a user