mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Merged revisions 71230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r71230 | murf | 2007-06-22 21:29:48 -0600 (Fri, 22 Jun 2007) | 1 line This patch is meant to fix 8433; where clid and src are lost via bridging. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1835,11 +1835,14 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
|
||||
|
||||
/* absorb the channel cdr */
|
||||
ast_cdr_merge(bridge_cdr, chan->cdr);
|
||||
ast_cdr_discard(chan->cdr); /* no posting these guys */
|
||||
if (!ast_test_flag(chan->cdr, AST_CDR_FLAG_LOCKED))
|
||||
ast_cdr_discard(chan->cdr); /* if locked cdrs are in chan, they are taken over in the merge */
|
||||
|
||||
/* absorb the peer cdr */
|
||||
ast_cdr_merge(bridge_cdr, peer->cdr);
|
||||
ast_cdr_discard(peer->cdr); /* no posting these guys */
|
||||
if (ast_test_flag(peer->cdr, AST_CDR_FLAG_LOCKED))
|
||||
ast_cdr_discard(peer->cdr); /* if locked cdrs are in peer, they are taken over in the merge */
|
||||
|
||||
peer->cdr = NULL;
|
||||
chan->cdr = bridge_cdr; /* make this available to the rest of the world via the chan while the call is in progress */
|
||||
} else if (chan->cdr) {
|
||||
@@ -1847,14 +1850,16 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
|
||||
ast_cdr_init(bridge_cdr,chan);
|
||||
/* absorb this data */
|
||||
ast_cdr_merge(bridge_cdr, chan->cdr);
|
||||
ast_cdr_discard(chan->cdr); /* no posting these guys */
|
||||
if (!ast_test_flag(chan->cdr, AST_CDR_FLAG_LOCKED))
|
||||
ast_cdr_discard(chan->cdr); /* if locked cdrs are in chan, they are taken over in the merge */
|
||||
chan->cdr = bridge_cdr; /* make this available to the rest of the world via the chan while the call is in progress */
|
||||
} else if (peer->cdr) {
|
||||
/* take the cdr from the peer - literally */
|
||||
ast_cdr_init(bridge_cdr,peer);
|
||||
/* absorb this data */
|
||||
ast_cdr_merge(bridge_cdr, peer->cdr);
|
||||
ast_cdr_discard(peer->cdr); /* no posting these guys */
|
||||
if (!ast_test_flag(chan->cdr, AST_CDR_FLAG_LOCKED))
|
||||
ast_cdr_discard(chan->cdr); /* if locked cdrs are in chan, they are taken over in the merge */
|
||||
peer->cdr = NULL;
|
||||
peer->cdr = bridge_cdr; /* make this available to the rest of the world via the chan while the call is in progress */
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user