[asterisk-commits] murf: trunk r139083 - in /trunk: ./ main/cdr.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 20 12:25:08 CDT 2008
Author: murf
Date: Wed Aug 20 12:25:07 2008
New Revision: 139083
URL: http://svn.digium.com/view/asterisk?view=rev&rev=139083
Log:
Merged revisions 139074 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r139074 | murf | 2008-08-20 11:14:55 -0600 (Wed, 20 Aug 2008) | 12 lines
(closes issue #13263)
Reported by: brainy
Tested by: murf
The specialized reset routine is tromping on the
flags field of the CDR. I made a change to not
reset the DISABLED bit. This should get rid of this
problem.
........
Modified:
trunk/ (props changed)
trunk/main/cdr.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/cdr.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cdr.c?view=diff&rev=139083&r1=139082&r2=139083
==============================================================================
--- trunk/main/cdr.c (original)
+++ trunk/main/cdr.c Wed Aug 20 12:25:07 2008
@@ -1081,12 +1081,15 @@
if (_flags)
ast_copy_flags(&flags, _flags, AST_FLAGS_ALL);
-
- if (_flags)
- ast_copy_flags(&flags, _flags, AST_FLAGS_ALL);
/* Reset to initial state */
- ast_clear_flag(cdr, AST_FLAGS_ALL);
+ if (ast_test_flag(cdr, AST_CDR_FLAG_POST_DISABLED)) { /* But do NOT lose the NoCDR() setting */
+ ast_clear_flag(cdr, AST_FLAGS_ALL);
+ ast_set_flag(cdr, AST_CDR_FLAG_POST_DISABLED);
+ } else {
+ ast_clear_flag(cdr, AST_FLAGS_ALL);
+ }
+
memset(&cdr->start, 0, sizeof(cdr->start));
memset(&cdr->end, 0, sizeof(cdr->end));
memset(&cdr->answer, 0, sizeof(cdr->answer));
More information about the asterisk-commits
mailing list