Module: kamailio
Branch: master
Commit: 2ba989deb0d60f6b0570f3cc47f9c363ab9df024
URL: 
https://github.com/kamailio/kamailio/commit/2ba989deb0d60f6b0570f3cc47f9c363ab9df024

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2017-01-14T13:03:02+01:00

nathelper: removed function names from log messages

---

Modified: src/modules/nathelper/nathelper.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/2ba989deb0d60f6b0570f3cc47f9c363ab9df024.diff
Patch: 
https://github.com/kamailio/kamailio/commit/2ba989deb0d60f6b0570f3cc47f9c363ab9df024.patch

---

diff --git a/src/modules/nathelper/nathelper.c 
b/src/modules/nathelper/nathelper.c
index e2f20a3..61f3747 100644
--- a/src/modules/nathelper/nathelper.c
+++ b/src/modules/nathelper/nathelper.c
@@ -2350,7 +2350,7 @@ sel_rewrite_contact(str* res, select_t* s, struct 
sip_msg* msg)
        res->len = 0;
        n = s->params[2].v.i;
        if (n <= 0) {
-               LOG(L_ERR, "ERROR: rewrite_contact[%d]: zero or negative index 
not supported\n", n);
+               LM_ERR("rewrite contact[%d] - zero or negative index not 
supported\n", n);
                return -1;
        }
        c = 0;
@@ -2361,7 +2361,7 @@ sel_rewrite_contact(str* res, select_t* s, struct 
sip_msg* msg)
        } while (n > 0);
 
        if (parse_uri(c->uri.s, c->uri.len, &uri) < 0 || uri.host.len <= 0) {
-               LOG(L_ERR, "rewrite_contact[%d]: Error while parsing Contact 
URI\n", s->params[2].v.i);
+               LM_ERR("rewrite contact[%d] - error while parsing Contact 
URI\n", s->params[2].v.i);
                return -1;
        }
        len = c->len - uri.host.len;
@@ -2371,7 +2371,7 @@ sel_rewrite_contact(str* res, select_t* s, struct 
sip_msg* msg)
        if (!def_port_fl)
                len += 1/*:*/+5/*port*/;
        if (len > sizeof(buf)) {
-               LOG(L_ERR, "ERROR: rewrite_contact[%d]: contact too long\n", 
s->params[2].v.i);
+               LM_ERR("rewrite contact[%d] - contact too long\n", 
s->params[2].v.i);
                return -1;
        }
        hostport = uri.host;


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to