From: Joshua Colp Date: Mon, 31 Jul 2006 17:09:10 +0000 (+0000) Subject: Add missing code to bring transferee channel out of MOH/autoservice under certain... X-Git-Tag: 1.2.11~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f41b9baed450feaf8d4b1de48173ca6f447d3a78;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_features.c b/res/res_features.c index a122abf5ff..703b7fd82e 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -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;