Fix supervised transfer (bug #2813)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-11-09 05:28:47 +00:00
parent 3cd77bab28
commit 0d23dbb490

View File

@@ -7027,7 +7027,8 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2)
*bridgeb = NULL,
*peera = NULL,
*peerb = NULL,
*peerc = NULL;
*peerc = NULL,
*peerd = NULL;
if (!p1->owner || !p2->owner) {
ast_log(LOG_WARNING, "Transfer attempted without dual ownership?\n");
@@ -7042,16 +7043,19 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2)
peera = chana;
peerb = chanb;
peerc = bridgea;
peerd = bridgeb;
} else if(bridgeb) {
peera = chanb;
peerb = chana;
peerc = bridgeb;
peerd = bridgea;
}
if(peera && peerb && peerc) {
ast_quiet_chan(peera);
ast_quiet_chan(peerb);
ast_quiet_chan(peerc);
ast_quiet_chan(peerd);
if (peera->cdr && peerb->cdr) {
peerb->cdr = ast_cdr_append(peerb->cdr, peera->cdr);