[sr-dev] git:master:551a562e: topoh: print the message buffer if parsing headers failed

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 24 21:48:18 CEST 2015


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-09-24T21:47:41+02:00

topoh: print the message buffer if parsing headers failed

---

Modified: modules/topoh/topoh_mod.c

---

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

---

diff --git a/modules/topoh/topoh_mod.c b/modules/topoh/topoh_mod.c
index d3f347e..343a745 100644
--- a/modules/topoh/topoh_mod.c
+++ b/modules/topoh/topoh_mod.c
@@ -229,7 +229,8 @@ int th_prepare_msg(sip_msg_t *msg)
 
 	if (parse_headers(msg, HDR_EOH_F, 0)==-1)
 	{
-		LM_DBG("parsing headers failed");
+		LM_DBG("parsing headers failed [[%.*s]]\n",
+				msg->len, msg->buf);
 		return 2;
 	}
 




More information about the sr-dev mailing list