Module: sip-router Branch: sr_3.0 Commit: d4d64d3ecce3c11240346f3218863bb315ad7fcb URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d4d64d3e...
Author: Juha Heinanen jh@tutpro.com Committer: Juha Heinanen jh@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;