[sr-dev] git:kamailio_3.0: modules_k/nathelper: handle_ruri_alias() fix

Juha Heinanen jh at tutpro.com
Fri Apr 2 09:28:26 CEST 2010


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

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date:   Fri Apr  2 10:19:55 2010 +0300

modules_k/nathelper: handle_ruri_alias() fix

- Look for ;alias parameter in parsed_uri.sip_params field instead of
  parsed_uri.params field.
(cherry picked from commit ba7e942b819cea6c6d71651a37cfd9f73a9ddd48)

---

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

diff --git a/modules_k/nathelper/nathelper.c b/modules_k/nathelper/nathelper.c
index 3e66ee4..5f73031 100644
--- a/modules_k/nathelper/nathelper.c
+++ b/modules_k/nathelper/nathelper.c
@@ -1504,12 +1504,12 @@ handle_ruri_alias_f(struct sip_msg* msg, char* str1, char* str2)
     unsigned int len, rest_len, val_len, alias_len, proto_type, cur_uri_len,
 	ip_port_len;
 
-    if ((msg->parsed_uri_ok == 0) && (parse_sip_msg_uri(msg) < 0)) {
+    if (parse_sip_msg_uri(msg) < 0) {
 	LM_ERR("while parsing Request-URI\n");
 	return -1;
     }
-    rest = msg->parsed_uri.params.s;
-    rest_len = msg->parsed_uri.params.len;
+    rest = msg->parsed_uri.sip_params.s;
+    rest_len = msg->parsed_uri.sip_params.len;
     if (rest_len == 0) {
 	LM_DBG("no params\n");
 	return 2;




More information about the sr-dev mailing list