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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 7 15:20:49 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12946 
====================================================================== 
Reported By:                meral
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   12946
Category:                   CDR/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
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-07 15:20 CDT
====================================================================== 
Summary:                    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...
related to          0014306 CDR not written when Busy() used
====================================================================== 

---------------------------------------------------------------------- 
 (0104391) mnicholson (administrator) - 2009-05-07 15:20
 http://bugs.digium.com/view.php?id=12946#c104391 
---------------------------------------------------------------------- 
I am taking a look at this issue.  Currently for the following test cases
(taken from the original report) in asterisk 1.4 SVN the results are as
follows:

exten =>s,1,Answer
exten =>s,n,ResetCDR(w)
exten =>s,n,ResetCDR(w)

Only 1 cdr record

exten =>s,1,ResetCDR(w)
exten =>s,n,ResetCDR(w)

NO cdr records (unanswered = yes)

In both cases, two CDR records should be produced.  I am looking into
this. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-07 15:20 mnicholson     Note Added: 0104391                          
======================================================================




More information about the asterisk-bugs mailing list