[asterisk-commits] murf: branch murf/CDRfix4 r123010 - /team/murf/CDRfix4/main/cdr.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 16 11:07:49 CDT 2008
Author: murf
Date: Mon Jun 16 11:07:48 2008
New Revision: 123010
URL: http://svn.digium.com/view/asterisk?view=rev&rev=123010
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/CDRfix4/main/cdr.c
Modified: team/murf/CDRfix4/main/cdr.c
URL: http://svn.digium.com/view/asterisk/team/murf/CDRfix4/main/cdr.c?view=diff&rev=123010&r1=123009&r2=123010
==============================================================================
--- team/murf/CDRfix4/main/cdr.c (original)
+++ team/murf/CDRfix4/main/cdr.c Mon Jun 16 11:07:48 2008
@@ -873,8 +873,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 '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