[asterisk-bugs] [Asterisk 0017001]: [patch] sqlite module does bad parsing of values in config file

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 13 11:33:22 CDT 2010


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17001 
====================================================================== 
Reported By:                snuffy
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17001
Category:                   CDR/cdr_sqlite3_custom
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           SVN 
JIRA:                       SWP-1058 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 250781 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-03-09 16:48 CST
Last Modified:              2010-04-13 11:33 CDT
====================================================================== 
Summary:                    [patch] sqlite module does bad parsing of values in
config file
Description: 
If you try to use an option to a CDR() function  or any function it will
fail to input records, because it separates on the ',' which can be
mid-string like CDR(blah,f) would become 'CDR(blah' and 'f)' causing error

Offending code:

133     while ((val = strsep(&vals, ","))) {
134         /* Strip the single quotes off if they are there */
135         val = ast_strip_quoted(val, "'", "'");
====================================================================== 

---------------------------------------------------------------------- 
 (0120327) svnbot (reporter) - 2010-04-13 11:33
 https://issues.asterisk.org/view.php?id=17001#c120327 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 257065

U   trunk/cdr/cdr_sqlite3_custom.c

------------------------------------------------------------------------
r257065 | tilghman | 2010-04-13 11:33:21 -0500 (Tue, 13 Apr 2010) | 8
lines

Ensure that we can have commas within cdr values.

(closes issue https://issues.asterisk.org/view.php?id=17001)
 Reported by: snuffy
 Patches: 
       20100412__issue17001.diff.txt uploaded by tilghman (license 14)
 Tested by: snuffy

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-13 11:33 svnbot         Note Added: 0120327                          
2010-04-13 11:33 svnbot         Status                   ready for testing =>
assigned
2010-04-13 11:33 svnbot         Assigned To               => tilghman        
2010-04-13 11:33 svnbot         Status                   assigned => resolved
2010-04-13 11:33 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list