aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-31 17:09:10 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-31 17:09:10 +0000
commit587458a74898c7eccc4e564b5839548e57dbc474 (patch)
treed2454ffd43f00998a02d8a6be4c1f40e3fbde375 /res/res_features.c
parent92b8f61332ad910aa35dd7b3b250b066ce3cf606 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.2@38585 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r--res/res_features.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_features.c b/res/res_features.c
index a122abf5f..703b7fd82 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;