[asterisk-bugs] [Asterisk 0012946]: [patch] ResetCDR does not work on non-answered channel

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 29 13:53:03 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=12946 
====================================================================== 
Reported By:                meral
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12946
Category:                   CDR/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for review
Asterisk Version:           1.4.20 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-06-28 20:50 CDT
Last Modified:              2009-05-29 13:53 CDT
====================================================================== 
Summary:                    [patch] ResetCDR does not work on non-answered
channel
Description: 
i am using resetCDR(w) for re-setup cdr and post prevous one
when channel is answered, resetCDr(w) works as documented
so:
exten =>s,1,Answer
exten =>s,n,ResetCDR(w)
exten =>s,n,ResetCDR(w)
produce 3 records
but if channel unanswered,then
exten =>s,1,ResetCDR(w)
exten =>s,n,ResetCDR(w)
produce only 1 record.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013892 After upgrading from 1.4.21.2 to 1.4.22...
parent of           0015122 Abandoned queue calls won't show on CDR
related to          0014306 CDR not written when Busy() used
====================================================================== 

---------------------------------------------------------------------- 
 (0105740) svnbot (reporter) - 2009-05-29 13:53
 https://issues.asterisk.org/view.php?id=12946#c105740 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 198068

U   branches/1.4/include/asterisk/cdr.h
U   branches/1.4/main/cdr.c
U   branches/1.4/main/channel.c
U   branches/1.4/res/res_features.c

------------------------------------------------------------------------
r198068 | mnicholson | 2009-05-29 13:53:01 -0500 (Fri, 29 May 2009) | 15
lines

Use AST_CDR_NOANSWER instead of AST_CDR_NULL as the default CDR
disposition.

This change also involves the addition of an AST_CDR_FLAG_ORIGINATED flag
that is used on originated channels to distinguish: them from dialed
channels.

(closes issue https://issues.asterisk.org/view.php?id=12946)
Reported by: meral
Patches:
      null-cdr2.diff uploaded by mnicholson (license 96)
Tested by: mnicholson, dbrooks

(closes issue https://issues.asterisk.org/view.php?id=15122)
Reported by: sum
Tested by: sum


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=198068 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-29 13:53 svnbot         Note Added: 0105740                          
======================================================================




More information about the asterisk-bugs mailing list