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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2017-08-14T14:51:09+02:00

topos: added few debug messages when managing headers and ruri

---

Modified: src/modules/topos/tps_msg.c

---

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

---

diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c
index 228996960e..22441b5fa9 100644
--- a/src/modules/topos/tps_msg.c
+++ b/src/modules/topos/tps_msg.c
@@ -179,6 +179,8 @@ int tps_add_headers(sip_msg_t *msg, str *hname, str *hbody, 
int hpos)
                hs.len += 2;
        }
 
+       LM_DBG("adding to headers(%d) - [%.*s]\n", hpos, hs.len, hs.s);
+
        if (insert_new_lump_before(anchor, hs.s, hs.len, 0) == 0) {
                LM_ERR("can't insert lump\n");
                pkg_free(hs.s);
@@ -797,6 +799,8 @@ int tps_request_received(sip_msg_t *msg, int dialog)
                if(rewrite_uri(msg, &nuri)<0) {
                        LM_ERR("failed to update r-uri\n");
                        return -1;
+               } else {
+                       LM_DBG("r-uri updated to: [%.*s]\n", nuri.len, nuri.s);
                }
        }
 


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

Reply via email to