dect
/
asterisk
Archived
13
0
Fork 0

Don't even attempt to masquerade a channel into itself (bug #3040)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4811 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-01-16 08:10:12 +00:00
parent 30c193ce7d
commit 2d093755b9
1 changed files with 2 additions and 2 deletions

View File

@ -7489,7 +7489,7 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2)
peerd = bridgea;
}
if (peera && peerb && peerc) {
if (peera && peerb && peerc && (peerb != peerc)) {
ast_quiet_chan(peera);
ast_quiet_chan(peerb);
ast_quiet_chan(peerc);
@ -7515,7 +7515,7 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2)
}
return res;
} 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)
ast_softhangup_nolock(chana, AST_SOFTHANGUP_DEV);
if (chanb)