dect
/
asterisk
Archived
13
0
Fork 0

Fix supervised transfer (bug #2813)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4189 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-11-08 18:23:01 +00:00
parent e7b3e94482
commit fb31a3736f
1 changed files with 5 additions and 1 deletions

View File

@ -6994,7 +6994,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");
@ -7009,16 +7010,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);