Browse code

topoh: aded debug message for knowing the reason of no decoding rr

Daniel-Constantin Mierla authored on 07/01/2019 11:01:21
Showing 1 changed files
... ...
@@ -701,7 +701,7 @@ int th_unmask_route(sip_msg_t *msg)
701 701
 						(strncasecmp(rr->nameaddr.uri.s,th_uri_prefix.s,
702 702
 									th_uri_prefix.len)!=0)))
703 703
 				{
704
-					LM_DBG("rr %d is not encoded: [%.*s]", i,
704
+					LM_DBG("rr %d is not encoded: [%.*s] - missing prefix\n", i,
705 705
 							rr->nameaddr.uri.len, rr->nameaddr.uri.s);
706 706
 					rr = rr->next;
707 707
 					continue;
... ...
@@ -710,6 +710,8 @@ int th_unmask_route(sip_msg_t *msg)
710 710
 				if(th_get_uri_param_value(&rr->nameaddr.uri, &th_uparam_name,
711 711
 							&eval)<0 || eval.len<=0)
712 712
 				{
713
+					LM_DBG("rr %d is not encoded: [%.*s] - missing param\n", i,
714
+							rr->nameaddr.uri.len, rr->nameaddr.uri.s);
713 715
 					rr = rr->next;
714 716
 					continue;
715 717
 				}