Module: kamailio
Branch: master
Commit: b325a7711ac405e5598f7fbd224fb1b8e84221cf
URL:
https://github.com/kamailio/kamailio/commit/b325a7711ac405e5598f7fbd224fb1b…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2017-08-25T10:29:44+03:00
modules/lcr: fixed testing if dont_strip_or_prefix_flag is set
---
Modified: src/modules/lcr/lcr_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b325a7711ac405e5598f7fbd224fb1b…
Patch:
https://github.com/kamailio/kamailio/commit/b325a7711ac405e5598f7fbd224fb1b…
---
diff --git a/src/modules/lcr/lcr_mod.c b/src/modules/lcr/lcr_mod.c
index 02bad0bb5e..5b4c99d865 100644
--- a/src/modules/lcr/lcr_mod.c
+++ b/src/modules/lcr/lcr_mod.c
@@ -2376,7 +2376,7 @@ static int generate_uris(struct sip_msg* _m, char *r_uri, str
*r_uri_user,
}
if ((dont_strip_or_prefix_flag_param != -1) &&
- isflagset(_m, dont_strip_or_prefix_flag_param)) {
+ (isflagset(_m, dont_strip_or_prefix_flag_param) == 1)) {
strip = 0;
prefix.len = 0;
}