[sr-dev] git:4.2:9524b347: db_text : missing OP_NEQ
Luis Azedo
luis at 2600hz.com
Thu Feb 19 18:52:27 CET 2015
Module: kamailio
Branch: 4.2
Commit: 9524b3471802c09361fd290cf35b2d5096ac0767
URL: https://github.com/kamailio/kamailio/commit/9524b3471802c09361fd290cf35b2d5096ac0767
Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Luis Azedo <luis at 2600hz.com>
Date: 2015-02-19T17:52:06Z
db_text : missing OP_NEQ
this affects the presence package when it queries for active_watchers
(cherry picked from commit 5adbfc6cc62be393ac55d296cab79f7e60b17ae4)
---
Modified: modules/db_text/dbt_res.c
---
Diff: https://github.com/kamailio/kamailio/commit/9524b3471802c09361fd290cf35b2d5096ac0767.diff
Patch: https://github.com/kamailio/kamailio/commit/9524b3471802c09361fd290cf35b2d5096ac0767.patch
---
diff --git a/modules/db_text/dbt_res.c b/modules/db_text/dbt_res.c
index c64a7f2..5eb75e8 100644
--- a/modules/db_text/dbt_res.c
+++ b/modules/db_text/dbt_res.c
@@ -208,6 +208,11 @@ int dbt_row_match(dbt_table_p _dtp, dbt_row_p _drp, int* _lkey,
if(res!=0)
return 0;
}else{
+ if(!strcmp(_op[i], OP_NEQ))
+ {
+ if(res==0)
+ return 0;
+ }else{
if(!strcmp(_op[i], OP_LT))
{
if(res!=-1)
@@ -229,7 +234,7 @@ int dbt_row_match(dbt_table_p _dtp, dbt_row_p _drp, int* _lkey,
return 0;
}else{
return 0;
- }}}}}
+ }}}}}}
}
return 1;
}
More information about the sr-dev
mailing list