Module: kamailio
Branch: 5.0
Commit: ba6ec1a9c651e43d4a0e89724ad5a7dfa6dafda7
URL:
https://github.com/kamailio/kamailio/commit/ba6ec1a9c651e43d4a0e89724ad5a7d…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2017-08-25T10:32:26+03:00
modules/lcr: fixed testing if dont_strip_or_prefix_flag is set
(cherry picked from commit b325a7711ac405e5598f7fbd224fb1b8e84221cf)
---
Modified: src/modules/lcr/lcr_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ba6ec1a9c651e43d4a0e89724ad5a7d…
Patch:
https://github.com/kamailio/kamailio/commit/ba6ec1a9c651e43d4a0e89724ad5a7d…
---
diff --git a/src/modules/lcr/lcr_mod.c b/src/modules/lcr/lcr_mod.c
index bb815f9b39..6fb0f1d26d 100644
--- a/src/modules/lcr/lcr_mod.c
+++ b/src/modules/lcr/lcr_mod.c
@@ -2149,7 +2149,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;
}