Module: sip-router
Branch: 3.1
Commit: cd7dfe3e6ad90356c4fbf22edc399cdbf9ff2ecd
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cd7dfe3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 27 21:33:13 2011 +0100
sanity: print broken uri if failed to parse
(cherry picked from commit f3217b68093f82da411b6870eaabeaba9e229e0c)
---
modules/sanity/sanity.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/sanity/sanity.c b/modules/sanity/sanity.c
index c7cc41b..e60a28c 100644
--- a/modules/sanity/sanity.c
+++ b/modules/sanity/sanity.c
@@ -218,7 +218,8 @@ int check_ruri_scheme(struct sip_msg* _msg) {
if (_msg->parsed_uri_ok == 0 &&
parse_sip_msg_uri(_msg) != 1) {
/* unsupported schemes end up here already */
- LOG(L_WARN, "sanity_check(): check_ruri_scheme(): failed to parse request
uri\n");
+ LM_WARN("failed to parse request uri [%.*s]\n",
+ GET_RURI(_msg)->len, GET_RURI(_msg)->s);
}
if (_msg->parsed_uri.type == ERROR_URI_T) {
if (_msg->REQ_METHOD != METHOD_ACK) {