Module: kamailio
Branch: master
Commit: 5a0086fb5d54cf0411180a8426ea49ad440f147a
URL:
https://github.com/kamailio/kamailio/commit/5a0086fb5d54cf0411180a8426ea49a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-05-22T20:21:02+02:00
topoh: more verbose debug messages when decoding r-uri
---
Modified: src/modules/topoh/th_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5a0086fb5d54cf0411180a8426ea49a…
Patch:
https://github.com/kamailio/kamailio/commit/5a0086fb5d54cf0411180a8426ea49a…
---
diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c
index 0b9db7289d..8f46382c8e 100644
--- a/src/modules/topoh/th_msg.c
+++ b/src/modules/topoh/th_msg.c
@@ -749,14 +749,19 @@ int th_unmask_ruri(sip_msg_t *msg)
}
if(th_get_uri_param_value(&REQ_LINE(msg).uri, &th_uparam_name, &eval)<0
- || eval.len<=0)
+ || eval.len<=0) {
+ LM_DBG("no uri param [%.*s] in [%.*s]\n",
+ th_uparam_name.len, th_uparam_name.s,
+ REQ_LINE(msg).uri.len,REQ_LINE(msg).uri.s);
return -1;
+ }
out.s = th_mask_decode(eval.s, eval.len,
&th_uparam_prefix, 0, &out.len);
if(out.s==NULL)
{
- LM_ERR("cannot decode r-uri\n");
+ LM_ERR("cannot decode r-uri [%.*s]\n",
+ REQ_LINE(msg).uri.len,REQ_LINE(msg).uri.s);
return -1;
}