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

Author: Federico Cabiddu <federico.cabi...@gmail.com>
Committer: grumvalski <federico.cabi...@gmail.com>
Date: 2015-05-09T18:17:28+02:00

modules/nathelper: don't include enclosing bracket in contact uri in 
set_contact_alias

---

Modified: modules/nathelper/nathelper.c

---

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

---

diff --git a/modules/nathelper/nathelper.c b/modules/nathelper/nathelper.c
index 14880a7..f6791db 100644
--- a/modules/nathelper/nathelper.c
+++ b/modules/nathelper/nathelper.c
@@ -921,8 +921,8 @@ set_contact_alias_f(struct sip_msg* msg, char* str1, char* 
str2)
                pkg_free(buf);
                return -1;
        }
-       c->uri.s = buf;
-       c->uri.len = len;
+       c->uri.s = buf + br;
+       c->uri.len = len -2*br;
 
        return 1;
 }


_______________________________________________
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