Module: sip-router
Branch: kamailio_3.0
Commit: 195cdf43e8eea385330376184f8b78b7d0322780
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=195cdf4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 12:09:20 2010 +0100
sanity: print From hdr in warning message
- when parsing of the header fails
---
modules/sanity/sanity.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/sanity/sanity.c b/modules/sanity/sanity.c
index 9df37a2..76f71f4 100644
--- a/modules/sanity/sanity.c
+++ b/modules/sanity/sanity.c
@@ -691,7 +691,7 @@ int check_parse_uris(struct sip_msg* _msg, int checks) {
parse_to(_msg->from->body.s, _msg->from->body.s + \
_msg->from->body.len + 1, ft_body);
if (ft_body->error == PARSE_ERROR) {
- LOG(L_WARN, "sanity_check(): check_parse_uris(): failed to parse From
header\n");
+ LOG(L_WARN, "sanity_check(): check_parse_uris(): failed to parse From header
[%.*s]\n", _msg->from->body.len, _msg->from->body.s);
pkg_free(ft_body);
if (_msg->REQ_METHOD != METHOD_ACK) {
if (sl.reply(_msg, 400, "Bad From header") == -1) {