[asterisk-bugs] [Asterisk 0015953]: [patch] sqlite3 CDRs not working after a reload

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 9 12:31:12 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15953 
====================================================================== 
Reported By:                frawd
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   15953
Category:                   CDR/cdr_sqlite3_custom
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                       SWP-222 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-09-24 08:03 CDT
Last Modified:              2009-10-09 12:31 CDT
====================================================================== 
Summary:                    [patch] sqlite3 CDRs not working after a reload
Description: 
A module reload calls free_config() which sqlite3_closes the db, preventing
CDRs to be logged there until next full restart.

Unfortunately the sqlite3_open is only done on load.

Patch adds a reload option to free_config to prevent it from closing the
sqlite3 db handler. I only tried it on my backport for 1.4, not on trunk.
====================================================================== 

---------------------------------------------------------------------- 
 (0112127) svnbot (reporter) - 2009-10-09 12:31
 https://issues.asterisk.org/view.php?id=15953#c112127 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 223171

_U  branches/1.6.1/
U   branches/1.6.1/cdr/cdr_sqlite3_custom.c

------------------------------------------------------------------------
r223171 | mnicholson | 2009-10-09 12:31:11 -0500 (Fri, 09 Oct 2009) | 15
lines

Merged revisions 223136 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r223136 | mnicholson | 2009-10-09 12:14:38 -0500 (Fri, 09 Oct 2009) | 8
lines
  
  Don't close the sqlite database when reloading.  Only close the database
when unloading.
  
  (closes issue https://issues.asterisk.org/view.php?id=15953)
  Reported by: frawd
  Patches:
        sqlite3_rev220097.diff uploaded by frawd (license 610)
  Tested by: frawd
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-09 12:31 svnbot         Checkin                                      
2009-10-09 12:31 svnbot         Note Added: 0112127                          
======================================================================




More information about the asterisk-bugs mailing list