mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +00:00
Don't even attempt to masquerade a channel into itself (bug #3040)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7489,7 +7489,7 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2)
|
|||||||
peerd = bridgea;
|
peerd = bridgea;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (peera && peerb && peerc) {
|
if (peera && peerb && peerc && (peerb != peerc)) {
|
||||||
ast_quiet_chan(peera);
|
ast_quiet_chan(peera);
|
||||||
ast_quiet_chan(peerb);
|
ast_quiet_chan(peerb);
|
||||||
ast_quiet_chan(peerc);
|
ast_quiet_chan(peerc);
|
||||||
@@ -7515,7 +7515,7 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2)
|
|||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_NOTICE, "Transfer attempted with no bridged calls to transfer\n");
|
ast_log(LOG_NOTICE, "Transfer attempted with no appropriate bridged calls to transfer\n");
|
||||||
if (chana)
|
if (chana)
|
||||||
ast_softhangup_nolock(chana, AST_SOFTHANGUP_DEV);
|
ast_softhangup_nolock(chana, AST_SOFTHANGUP_DEV);
|
||||||
if (chanb)
|
if (chanb)
|
||||||
|
|||||||
Reference in New Issue
Block a user