Module: kamailio Branch: master Commit: 8cd0a5ab8683c7a598499e6b1bbe1fc6a489f531 URL: https://github.com/kamailio/kamailio/commit/8cd0a5ab8683c7a598499e6b1bbe1fc6...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2021-09-09T14:59:21+02:00
misctest: info debug about input data
---
Modified: src/modules/misctest/misctest_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/8cd0a5ab8683c7a598499e6b1bbe1fc6... Patch: https://github.com/kamailio/kamailio/commit/8cd0a5ab8683c7a598499e6b1bbe1fc6...
---
diff --git a/src/modules/misctest/misctest_mod.c b/src/modules/misctest/misctest_mod.c index c8fe64a56c..2b304c6b5d 100644 --- a/src/modules/misctest/misctest_mod.c +++ b/src/modules/misctest/misctest_mod.c @@ -312,37 +312,38 @@ static int misctest_message_init(void) return -1; }
- tmsg.buf = tbuf; + tmsg.buf = tbuf;
- LM_INFO("using data: [[%.*s]] (%d)\n", tmsg.len, tmsg.buf, tmsg.len); + LM_INFO("data - start: %p - end: %p - len: %d\n", tmsg.buf, + tmsg.buf + tmsg.len, tmsg.len); + LM_INFO("data - content: [[%.*s]]\n", tmsg.len, tmsg.buf);
misctest_hexprint(tmsg.buf, tmsg.len, 20, 10);
- if (parse_msg(tmsg.buf, tmsg.len, &tmsg) < 0) { - goto cleanup; - } + if (parse_msg(tmsg.buf, tmsg.len, &tmsg) < 0) { + goto cleanup; + }
- parse_sdp(&tmsg); + parse_sdp(&tmsg);
- parse_headers(&tmsg, HDR_TO_F, 0); + parse_headers(&tmsg, HDR_TO_F, 0);
- parse_contact_header(&tmsg); + parse_contact_header(&tmsg);
- parse_refer_to_header(&tmsg); + parse_refer_to_header(&tmsg);
- parse_to_header(&tmsg); + parse_to_header(&tmsg);
- parse_pai_header(&tmsg); + parse_pai_header(&tmsg);
- parse_diversion_header(&tmsg); + parse_diversion_header(&tmsg);
- parse_privacy(&tmsg); + parse_privacy(&tmsg);
cleanup: - free_sip_msg(&tmsg); - - return 0; + free_sip_msg(&tmsg);
+ return 0; }
/**