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:
Joshua Colp
2006-07-31 17:09:10 +00:00
parent af0052ee94
commit f41b9baed4

View File

@@ -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;