mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Add missing code to bring transferee channel out of MOH/autoservice under certain circumstance (issue #7611 reported by guillecabeza with minor mods by myself)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -842,6 +842,9 @@ static int builtin_atxfer(struct ast_channel *chan, struct ast_channel *peer, st
|
||||
}
|
||||
} else {
|
||||
ast_log(LOG_WARNING, "Did not read data.\n");
|
||||
ast_moh_stop(transferee);
|
||||
ast_autoservice_stop(transferee);
|
||||
ast_indicate(transferee, AST_CONTROL_UNHOLD);
|
||||
res = ast_streamfile(transferer, "beeperr", transferer->language);
|
||||
if (ast_waitstream(transferer, "") < 0) {
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user