From 5a0086fb5d54cf0411180a8426ea49ad440f147a Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 22 May 2018 20:21:02 +0200 Subject: [PATCH] topoh: more verbose debug messages when decoding r-uri --- src/modules/topoh/th_msg.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c index 0b9db7289d0..8f46382c8e4 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; }