[Asterisk-cvs] asterisk-addons cdr_addon_mysql.c,1.6,1.7

anthm at lists.digium.com anthm at lists.digium.com
Mon Jan 31 09:20:45 CST 2005


Update of /usr/cvsroot/asterisk-addons
In directory mongoose.digium.com:/tmp/cvs-serv17144

Modified Files:
	cdr_addon_mysql.c 
Log Message:
add kpflemming's patch to make cdr_mysql work with his new config changes (#3458)

Index: cdr_addon_mysql.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/cdr_addon_mysql.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cdr_addon_mysql.c	21 Jan 2005 01:43:19 -0000	1.6
+++ cdr_addon_mysql.c	31 Jan 2005 15:22:09 -0000	1.7
@@ -266,7 +266,7 @@
 	struct ast_variable *var;
 	char *tmp;
 
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 	if (!cfg) {
 		ast_log(LOG_WARNING, "Unable to load config for mysql CDR's: %s\n", config);
 		return 0;
@@ -384,7 +384,7 @@
 		}
 	}
 	
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 
 	ast_log(LOG_DEBUG,"cdr_mysql: got hostname of %s\n",hostname);
 	ast_log(LOG_DEBUG,"cdr_mysql: got port of %d\n",dbport);




More information about the svn-commits mailing list