mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
fix res_config_odbc iax dual peer issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -42,7 +42,7 @@ static struct ast_config *config_odbc (char *file, struct ast_config *new_config
|
|||||||
char connection[128];
|
char connection[128];
|
||||||
int configured = 0, res = 0;
|
int configured = 0, res = 0;
|
||||||
odbc_obj *obj;
|
odbc_obj *obj;
|
||||||
SQLINTEGER err, commented, cat_metric, var_metric;
|
SQLINTEGER err, commented, cat_metric, var_metric, last_cat_metric;
|
||||||
SQLBIGINT id;
|
SQLBIGINT id;
|
||||||
char sql[255], filename[128], category[128], var_name[128], var_val[128];
|
char sql[255], filename[128], category[128], var_name[128], var_val[128];
|
||||||
SQLSMALLINT rowcount;
|
SQLSMALLINT rowcount;
|
||||||
@@ -132,8 +132,9 @@ static struct ast_config *config_odbc (char *file, struct ast_config *new_config
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if (strcmp (last, category)) {
|
if (strcmp (last, category) || last_cat_metric != cat_metric) {
|
||||||
strcpy (last, category);
|
strcpy (last, category);
|
||||||
|
last_cat_metric = cat_metric;
|
||||||
new_cat = (struct ast_category *) ast_new_category (category);
|
new_cat = (struct ast_category *) ast_new_category (category);
|
||||||
|
|
||||||
if (!cat_started) {
|
if (!cat_started) {
|
||||||
|
Reference in New Issue
Block a user