[svn-commits] tilghman: branch 1.4 r71291 - /branches/1.4/res/res_features.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Jun 24 12:50:24 CDT 2007


Author: tilghman
Date: Sun Jun 24 12:50:24 2007
New Revision: 71291

URL: http://svn.digium.com/view/asterisk?view=rev&rev=71291
Log:
Issue 10044 - chan->cdr is NULL here, so peer->cdr is what we really wanted to use

Modified:
    branches/1.4/res/res_features.c

Modified: branches/1.4/res/res_features.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_features.c?view=diff&rev=71291&r1=71290&r2=71291
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Sun Jun 24 12:50:24 2007
@@ -1581,8 +1581,8 @@
 			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 {




More information about the svn-commits mailing list