summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-16 08:10:12 +0000
committerMark Spencer <markster@digium.com>2005-01-16 08:10:12 +0000
commit93629a3a897f514b985dbf5dea0a75331a6680b8 (patch)
treeb32dd1b283b65a0cd69a435a787d998e1aedfc3f /channels
parentb6b393c1b923546ec00c96ce5dbc5397cebc6eb8 (diff)
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
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 338e79b88..9246a01ba 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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)