diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-09 14:47:59 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-09 14:47:59 +0000 |
commit | 9a26fd29290e9ddc4f988536c421834a970b2053 (patch) | |
tree | 06185e8cde1d1a8808719d1db1ab5f53b2bdb1ae /res/res_config_odbc.c | |
parent | 56d2a5ac88c9a5390851f7f4a8fd21beeca1efe0 (diff) |
fix res_config_odbc iax dual peer issue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3414 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_config_odbc.c')
-rwxr-xr-x | res/res_config_odbc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index 60de7a41d..17f9bd258 100755 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -42,7 +42,7 @@ static struct ast_config *config_odbc (char *file, struct ast_config *new_config 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 @@ static struct ast_config *config_odbc (char *file, struct ast_config *new_config #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) { |