[Asterisk-cvs] asterisk/res res_config_odbc.c,1.4,1.5

anthm at lists.digium.com anthm at lists.digium.com
Fri Jul 9 11:02:14 CDT 2004


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

Modified Files:
	res_config_odbc.c 
Log Message:
fix res_config_odbc iax dual peer issue

Index: res_config_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_config_odbc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- res_config_odbc.c	8 Jul 2004 20:16:28 -0000	1.4
+++ res_config_odbc.c	9 Jul 2004 14:47:59 -0000	1.5
@@ -42,7 +42,7 @@
 	char connection[128];
 	int configured = 0, res = 0;
 	odbc_obj *obj;
-	SQLINTEGER err, commented, cat_metric, var_metric;
+	SQLINTEGER err, commented, cat_metric, var_metric, last_cat_metric;
 	SQLBIGINT id;
 	char sql[255], filename[128], category[128], var_name[128], var_val[128];
 	SQLSMALLINT rowcount;
@@ -132,8 +132,9 @@
 #endif
 				);
 			} else {
-				if (strcmp (last, category)) {
+				if (strcmp (last, category) || last_cat_metric != cat_metric) {
 					strcpy (last, category);
+					last_cat_metric	= cat_metric;
 					new_cat = (struct ast_category *) ast_new_category (category);
 
 					if (!cat_started) {




More information about the svn-commits mailing list