Module: sip-router
Branch: master
Commit: ba7e942b819cea6c6d71651a37cfd9f73a9ddd48
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ba7e942…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)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.
---
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 80eef1c..83b5003 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;