[asterisk-bugs] [Asterisk 0012580]: Fails to load if sock not specified in config

noreply at bugs.digium.com noreply at bugs.digium.com
Sun May 4 16:46:47 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12580 
====================================================================== 
Reported By:                pnlarsson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12580
Category:                   Addons/cdr_addon_mysql
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 584 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-04-2008 03:50 CDT
Last Modified:              05-04-2008 16:46 CDT
====================================================================== 
Summary:                    Fails to load if sock not specified in config
Description: 
If the socket is not specified in the config file, cdr_addons_mysql will
fail to load. This is where mysql is running on the same machine. 

The patch attached solves this issue, without the patch the dbsock->str
contains (null) and then fails the ast_strlen_zero test.
====================================================================== 

---------------------------------------------------------------------- 
 mvanbaak - 05-04-08 16:46  
---------------------------------------------------------------------- 
+1 from me.
Looks correct, and indeed fixes the issue.
Tested on Debian etch and Ubuntu 8.04 with latest trunk version of
asterisk and addons. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-04-08 16:46  mvanbaak       Note Added: 0086379                          
======================================================================




More information about the asterisk-bugs mailing list