[asterisk-commits] murf: branch murf/CDRfix6 r123011 - /team/murf/CDRfix6/main/cdr.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 16 11:08:25 CDT 2008
Author: murf
Date: Mon Jun 16 11:08:24 2008
New Revision: 123011
URL: http://svn.digium.com/view/asterisk?view=rev&rev=123011
Log:
the warning about 'no answer time' is only issued if the CDR disposition is 'ANSWERED' and there is no answer time set. This shouldn't happen.
Modified:
team/murf/CDRfix6/main/cdr.c
Modified: team/murf/CDRfix6/main/cdr.c
URL: http://svn.digium.com/view/asterisk/team/murf/CDRfix6/main/cdr.c?view=diff&rev=123011&r1=123010&r2=123011
==============================================================================
--- team/murf/CDRfix6/main/cdr.c (original)
+++ team/murf/CDRfix6/main/cdr.c Mon Jun 16 11:08:24 2008
@@ -869,8 +869,10 @@
} else
cdr->duration = cdr->end.tv_sec - cdr->start.tv_sec;
if (ast_tvzero(cdr->answer)) {
- ast_log(LOG_WARNING, "CDR on channel '%s' has no answer time\n", S_OR(cdr->channel, "<unknown>"));
- cdr->disposition = AST_CDR_FAILED;
+ if (cdr->disposition == AST_CDR_ANSWERED) {
+ ast_log(LOG_WARNING, "CDR on channel '%s' has no answer time but is marked 'ANSWERED'\n", S_OR(cdr->channel, "<unknown>"));
+ cdr->disposition = AST_CDR_FAILED;
+ }
} else
cdr->billsec = cdr->end.tv_sec - cdr->answer.tv_sec;
}
More information about the asterisk-commits
mailing list