Selaa lähdekoodia

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

(cherry picked from commit cee4941daf56985d9734263c4b99c33f9ef3a149)
(cherry picked from commit 3a78d068a3678471efe0a7e7f4ea0e7c9bc18675)
(cherry picked from commit 91763e1661c575db1f0ffb1916188a370a8fc143)
Daniel-Constantin Mierla 6 vuotta sitten
vanhempi
commit
1d53bbb2dd
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/modules/topoh/th_msg.c

+ 3 - 1
src/modules/topoh/th_msg.c

@@ -693,7 +693,7 @@ int th_unmask_route(sip_msg_t *msg)
 						(strncasecmp(rr->nameaddr.uri.s,th_uri_prefix.s,
 									th_uri_prefix.len)!=0)))
 				{
-					LM_DBG("rr %d is not encoded: [%.*s]", i,
+					LM_DBG("rr %d is not encoded: [%.*s] - missing prefix\n", i,
 							rr->nameaddr.uri.len, rr->nameaddr.uri.s);
 					rr = rr->next;
 					continue;
@@ -702,6 +702,8 @@ int th_unmask_route(sip_msg_t *msg)
 				if(th_get_uri_param_value(&rr->nameaddr.uri, &th_uparam_name,
 							&eval)<0 || eval.len<=0)
 				{
+					LM_DBG("rr %d is not encoded: [%.*s] - missing param\n", i,
+							rr->nameaddr.uri.len, rr->nameaddr.uri.s);
 					rr = rr->next;
 					continue;
 				}