diff --git a/main/features.c b/main/features.c index 4370014b32..3675a9d6a8 100644 --- a/main/features.c +++ b/main/features.c @@ -1688,6 +1688,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; } }