Module: sip-router
Branch: kamailio_3.0
Commit: a93f7ad1ce21413d0e2a00e4c8579f6bfe0a8a3f
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a93f7ad1ce21413d0e2a00e4c8579f6bfe0a8a3f

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Sun Jan 10 12:08:45 2010 +0100

nathelper(k): print bad contact uri

- help in troubleshooting bad sip clients

---

 modules_k/nathelper/nhelpr_funcs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules_k/nathelper/nhelpr_funcs.c 
b/modules_k/nathelper/nhelpr_funcs.c
index 50ec7d5..07271f2 100644
--- a/modules_k/nathelper/nhelpr_funcs.c
+++ b/modules_k/nathelper/nhelpr_funcs.c
@@ -406,7 +406,8 @@ get_contact_uri(struct sip_msg* _m, struct sip_uri *uri, 
contact_t** _c)
                 return -1;
 
         if (parse_uri((*_c)->uri.s, (*_c)->uri.len, uri) < 0 || uri->host.len 
<= 0) {
-                LM_ERR("failed to parse Contact URI\n");
+                LM_ERR("failed to parse Contact URI [%.*s]\n",
+                        (*_c)->uri.len, ((*_c)->uri.s)?(*_c)->uri.s:"");
                 return -1;
         }
         return 0;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to