Module: kamailio Branch: master Commit: 551a562eb799c903cda09599ff5d47366abf42c9 URL: https://github.com/kamailio/kamailio/commit/551a562eb799c903cda09599ff5d4736...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/551a562eb799c903cda09599ff5d4736... Patch: https://github.com/kamailio/kamailio/commit/551a562eb799c903cda09599ff5d4736...
---
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; }