[asterisk-bugs] [Asterisk 0012726]: ForkCDR application fails to set duration

noreply at bugs.digium.com noreply at bugs.digium.com
Wed May 28 19:19:07 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12726 
====================================================================== 
Reported By:                binuvb
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   12726
Category:                   Applications/app_forkcdr
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-27-2008 01:51 CDT
Last Modified:              05-28-2008 19:19 CDT
====================================================================== 
Summary:                    ForkCDR application fails to set duration
Description: 
Thanks in advance.

I have made a call back system using the callfiles. So when clients call
up some access number (which will come to asterisk), asterisk would
disconnect, call them back and plays an IVR, where the clients can dial
international numbers and speak. 

Here i used to generate 2 CDRs , one calling from asterisk to the client's
number and then from client's number to the number he/she dials. Both these
will be charged under the client's account(which is done by separate
program  made by me). 
I was using ForkCDR to generate the extra CDR
All these happened without any trouble in ast - 1.4.4. But of late, I
changed to ast-1.4.18. Now i get only one CDR. 

I did some googling and found out that in ast-1.4.18 , there were some
changes made which caused this. Will this feature be restored or can I
revert to an old version of forkcdr (within 1.4.18 itself) 
=============================================================
I got the below solution from the net which appeared to solve my problem.
I tried it , but failed
====================================================================
# svn co http://svn.digium.com/svn/asterisk/tags/1.4.18 asterisk-1.4.18
# cd asterisk-1.4.18
# svn diff -c 82444 > m10668.patch
# patch -R -p0 < m10668.patch

that should give you version with that specific patch reverted, then
you can just upgrade to next version by
# svn switch http://svn.digium.com/svn/asterisk/tags/1.4.19
and re- make, make install 
==========================================================================

Please do reply me and solve this.


Thanks once again
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0010668 Incomplete CDR lock
related to          0011721 When using ForkCDR Asterisk does not se...
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 05-28-08 19:19  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 118858

U   branches/1.4/apps/app_forkcdr.c
U   branches/1.4/main/cdr.c

------------------------------------------------------------------------
r118858 | murf | 2008-05-28 19:19:02 -0500 (Wed, 28 May 2008) | 46 lines

(closes issue http://bugs.digium.com/view.php?id=10668)
(closes issue http://bugs.digium.com/view.php?id=11721)
(closes issue http://bugs.digium.com/view.php?id=12726)
Reported by: arkadia
Tested by: murf

These changes:

1. revert the changes made via bug 10668; 
   I should have known that such changes,
   even tho they made sense at the time,
   seemed like an omission, etc, were actually
   integral to the CDR system via forkCDR.
   It makes sense to me now that forkCDR didn't
   natively end any CDR's, but rather depended
   on natively closing them all at hangup time
   via traversing and closing them all, whether
   locked or not. I still don't completely 
   understand the benefits of setvar and answer
   operating on locked cdrs, but I've seen 
   enough to revert those changes also, and
   stop messing up users who depended on that
   behavior. bug 12726 found reverting the changes
   fixed his changes, and after a long review
   and working on forkCDR, I can see why.
2. Apply the suggested enhancements proposed
   in 10668, but in a completely compatible
   way. ForkCDR will behave exactly as before,
   but now has new options that will allow some
   actions to be taken that will slightly 
   modify the outcome and side-effects of
   forkCDR. Based on conversations I've had 
   with various people, these small tweaks
   will allow some users to get the behavior
   they need. For instance, users executing
   forkCDR in an AGI script will find the
   answer time set, and DISPOSITION set, 
   a situation not covered when the routines
  were first written.
3. A small problem in the cdr serializer
   would output answer and end times even
   when they were not set. This is now 
   fixed.



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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-28-08 19:19  svnbot         Checkin                                      
05-28-08 19:19  svnbot         Note Added: 0087477                          
======================================================================




More information about the asterisk-bugs mailing list