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

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


The following issue has been RESOLVED. 
====================================================================== 
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:                     resolved
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:18 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0112124) svnbot (reporter) - 2009-10-09 12:18
 https://issues.asterisk.org/view.php?id=15953#c112124 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 223136

U   trunk/cdr/cdr_sqlite3_custom.c

------------------------------------------------------------------------
r223136 | mnicholson | 2009-10-09 12:18:05 -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=223136 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-09 12:18 svnbot         Checkin                                      
2009-10-09 12:18 svnbot         Note Added: 0112124                          
2009-10-09 12:18 svnbot         Status                   ready for review =>
assigned
2009-10-09 12:18 svnbot         Assigned To               => mnicholson      
2009-10-09 12:18 svnbot         Status                   assigned => resolved
2009-10-09 12:18 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list