[asterisk-commits] mnicholson: branch mnicholson/oldcdr r193047 - /team/mnicholson/oldcdr/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 7 15:57:04 CDT 2009
Author: mnicholson
Date: Thu May 7 15:57:01 2009
New Revision: 193047
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=193047
Log:
fixed a bug introduced when moving posting logic to cdr.c from ast_hangup()
Modified:
team/mnicholson/oldcdr/main/cdr.c
Modified: team/mnicholson/oldcdr/main/cdr.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/mnicholson/oldcdr/main/cdr.c?view=diff&rev=193047&r1=193046&r2=193047
==============================================================================
--- team/mnicholson/oldcdr/main/cdr.c (original)
+++ team/mnicholson/oldcdr/main/cdr.c Thu May 7 15:57:01 2009
@@ -1022,13 +1022,8 @@
continue;
}
- if (cdr->disposition == AST_CDR_NULL) {
- ast_log(LOG_DEBUG, "[%s] CDR not posted because disposition is NULL\n", chan);
- continue;
- }
-
- if (ast_test_flag(cdr, AST_CDR_FLAG_DIALED)) {
- ast_log(LOG_DEBUG, "[%s] CDR not posted because AST_CDR_FLAG_DIALED is set\n", chan);
+ if (cdr->disposition == AST_CDR_NULL && !ast_test_flag(cdr, AST_CDR_FLAG_DIALED)) {
+ ast_log(LOG_DEBUG, "[%s] CDR not posted because disposition is NULL and AST_CDR_FLAG_DIALED is not set\n", chan);
continue;
}
More information about the asterisk-commits
mailing list