Module: kamailio
Branch: master
Commit: cee4941daf56985d9734263c4b99c33f9ef3a149
URL: 
https://github.com/kamailio/kamailio/commit/cee4941daf56985d9734263c4b99c33f9ef3a149

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2019-01-07T12:01:21+01:00

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

---

Modified: src/modules/topoh/th_msg.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/cee4941daf56985d9734263c4b99c33f9ef3a149.diff
Patch: 
https://github.com/kamailio/kamailio/commit/cee4941daf56985d9734263c4b99c33f9ef3a149.patch

---

diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c
index 9cf87aa8c6..142eda1580 100644
--- a/src/modules/topoh/th_msg.c
+++ b/src/modules/topoh/th_msg.c
@@ -701,7 +701,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;
@@ -710,6 +710,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;
                                }


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to