aboutsummaryrefslogtreecommitdiffstats
path: root/main/features.c
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-22 15:46:22 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-22 15:46:22 +0000
commitc1afb692bc88c3b96e19b687b6a1bafc51d2a35a (patch)
tree28abcee40a6e8405b49d597da618ea698a9b7dbe /main/features.c
parent8248cf970dd1355fd5ad965da6adebdf2a8ee679 (diff)
fixes attended transfer behavior when both transferee and transferer hung up
If both the transferer and transferee of a attended transfer hangup before the new channel picks up, the new channel should be hung up as well as it has no endpoint to talk to. This mirrors the expected behavior used in 1.4. (closes issue #17444) Reported by: corruptor git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271831 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/features.c')
-rw-r--r--main/features.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/features.c b/main/features.c
index fff94feeb..a973004ba 100644
--- a/main/features.c
+++ b/main/features.c
@@ -2117,6 +2117,11 @@ static int builtin_atxfer(struct ast_channel *chan, struct ast_channel *peer, st
} else {
/* Transferee hung up */
finishup(transferee);
+ /* At this point both the transferer transferee have hungup,
+ * so if newchan is up, hang it up as it has no one to talk to */
+ if (newchan) {
+ ast_hangup(newchan);
+ }
return -1;
}
}