[asterisk-bugs] [Asterisk 0014744]: ForkCDR creates 3 CDR's

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 25 11:50:59 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14744 
====================================================================== 
Reported By:                deepesh
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14744
Category:                   Applications/app_forkcdr
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.23 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-25 05:37 CDT
Last Modified:              2009-03-25 11:50 CDT
====================================================================== 
Summary:                    ForkCDR creates 3 CDR's
Description: 
Hello,

After upgrading to asterisk 1.4.23.2 from asterisk 1.4.19.1, I am facing
problems with ForkCDR. While using ForkCDR I am getting three cdr's instead
of two. My dialplan is as follows.

[dialexten]
exten => 763,1,SetCDRUserField(764)
exten => 763,n,ForkCDR()
exten => 763,n,SetCDRUserField(763)
exten => 763,n,Dial(SIP/763)
exten => 763,n,Hangup

After exten 763 is answered it creates three cdrs.
The first cdr has userfield 763 and ANSWERED
Second cdr has userfield 764 and ANSWERED
Third cdr has userfield 763 and NO ANSWER

In the earlier version (1.4.19.1) only the first two cdrs used to be
created.

Thanks in advance.

====================================================================== 

---------------------------------------------------------------------- 
 (0102176) deepesh (reporter) - 2009-03-25 11:50
 http://bugs.digium.com/view.php?id=14744#c102176 
---------------------------------------------------------------------- 
This patch solved the problem of three cdr's. But now the billsec are same
for both cdr's. I have posted the cdrs below.

cdr format:-  
${CDR(start)}|${CDR(answer)}|${CDR(end)}|${CDR(duration)}|${CDR(billsec)}|${CDR(disposition)}|${CDR(uniqueid)}|${CDR(userfield)}|1

Before patch
2009-03-25 22:17:33|2009-03-25 22:17:35|2009-03-25
22:17:40|7|5|ANSWERED|1237999653.0|"763"|1
2009-03-25 22:17:33|2009-03-25 22:17:33|2009-03-25
22:17:40|7|7|ANSWERED|1237999653.0|"764"|1
2009-03-25 22:17:40||2009-03-25 22:17:40|0|0|NO
ANSWER|1237999653.0|"763"|1

After patch
2009-03-25 22:16:56|2009-03-25 22:17:03|2009-03-25
22:17:05|9|2|ANSWERED|1237999616.4|"764"|1
2009-03-25 22:16:56|2009-03-25 22:17:03|2009-03-25
22:17:05|9|2|ANSWERED|1237999616.4|"763"|1 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-25 11:50 deepesh        Note Added: 0102176                          
======================================================================




More information about the asterisk-bugs mailing list