[asterisk-commits] trunk r13160 - /trunk/cdr.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Mar 15 15:04:50 MST 2006
Author: russell
Date: Wed Mar 15 16:04:49 2006
New Revision: 13160
URL: http://svn.digium.com/view/asterisk?rev=13160&view=rev
Log:
Furthermore, set the disposition to FAILED if the CDR was never even started
Modified:
trunk/cdr.c
Modified: trunk/cdr.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr.c?rev=13160&r1=13159&r2=13160&view=diff
==============================================================================
--- trunk/cdr.c (original)
+++ trunk/cdr.c Wed Mar 15 16:04:49 2006
@@ -655,9 +655,10 @@
ast_log(LOG_WARNING, "CDR on channel '%s' already posted\n", chan);
if (ast_tvzero(cdr->end))
cdr->end = ast_tvnow();
- if (ast_tvzero(cdr->start))
+ if (ast_tvzero(cdr->start)) {
ast_log(LOG_WARNING, "CDR on channel '%s' has not started\n", chan);
- else
+ cdr->disposition = AST_CDR_FAILED;
+ } else
cdr->duration = cdr->end.tv_sec - cdr->start.tv_sec;
if (!ast_tvzero(cdr->answer))
cdr->billsec = cdr->end.tv_sec - cdr->answer.tv_sec;
More information about the asterisk-commits
mailing list