From 551a562eb799c903cda09599ff5d47366abf42c9 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 24 Sep 2015 21:47:41 +0200 Subject: [PATCH] topoh: print the message buffer if parsing headers failed --- modules/topoh/topoh_mod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/topoh/topoh_mod.c b/modules/topoh/topoh_mod.c index d3f347eb269..343a74521f9 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; }