]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue 10044 - chan->cdr is NULL here, so peer->cdr is what we really wanted to use
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 24 Jun 2007 17:50:24 +0000 (17:50 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 24 Jun 2007 17:50:24 +0000 (17:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71291 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index cd273a076f5734d92a127c2596afcd7334881c42..a4d3e9cef653d76029825b45ca5bad59287932fe 100644 (file)
@@ -1581,8 +1581,8 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
                        ast_cdr_init(bridge_cdr,peer);
                        /* absorb this data */
                        ast_cdr_merge(bridge_cdr, peer->cdr);
-                       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 */
+                       if (!ast_test_flag(peer->cdr, AST_CDR_FLAG_LOCKED))
+                               ast_cdr_discard(peer->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 {