[asterisk-addons-commits] tilghman: trunk r550 - /trunk/res/res_config_mysql.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Wed Mar 12 00:50:55 CDT 2008


Author: tilghman
Date: Wed Mar 12 00:50:55 2008
New Revision: 550

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=550
Log:
Fix module, based on recent required API change
(closes issue #12189)
 Reported by: IgorG
 Patches: 
       addons_res_mysql.diff uploaded by IgorG (license 20)

Modified:
    trunk/res/res_config_mysql.c

Modified: trunk/res/res_config_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/res/res_config_mysql.c?view=diff&rev=550&r1=549&r2=550
==============================================================================
--- trunk/res/res_config_mysql.c (original)
+++ trunk/res/res_config_mysql.c Wed Mar 12 00:50:55 2008
@@ -535,7 +535,7 @@
 	return (int)numrows;
 }
  
-static struct ast_config *config_mysql(const char *database, const char *table, const char *file, struct ast_config *cfg, struct ast_flags config_flags, const char *unused)
+static struct ast_config *config_mysql(const char *database, const char *table, const char *file, struct ast_config *cfg, struct ast_flags config_flags, const char *unused, const char *who_asked)
 {
 	MYSQL_RES *result;
 	MYSQL_ROW row;
@@ -582,7 +582,7 @@
 
 		while ((row = mysql_fetch_row(result))) {
 			if (!strcmp(row[1], "#include")) {
-				if (!ast_config_internal_load(row[2], cfg, config_flags, "")) {
+				if (!ast_config_internal_load(row[2], cfg, config_flags, "", who_asked)) {
 					mysql_free_result(result);
 					ast_mutex_unlock(&dbread.lock);
 					ast_config_destroy(cfg);




More information about the asterisk-addons-commits mailing list