i'm trying to find out why handle_uri_alias() function is not finding
any params in ACK request.
i have in script just before handle_uri_alias() call debug statement
that prints $rm and $ru and it shows correctly:
Apr 1 17:00:45 lohi /usr/sbin/sip-proxy[22980]: INFO: handling uri alias of ACK sip:+35862345670@192.168.15.100:5060;user=phone;alias=86.133.100.125:5060t1
handle_uri_alias() has in the beginning
if ((msg->parsed_uri_ok == 0) && (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;
LM_INFO("params are %.*s\n", rest_len, rest);
if (rest_len == 0) {
LM_INFO("no params\n");
return 2;
}
and here is what comes to syslog:
Apr 1 17:00:45 lohi /usr/sbin/sip-proxy[22980]: INFO: nathelper [nathelper.c:1513]: params are
Apr 1 17:00:45 lohi /usr/sbin/sip-proxy[22980]: INFO: nathelper
[nathelper.c:1515]: no params
why is msg->parsed_uri.params empty str after calling
parse_sip_msg_uri()?
-- juha
i tried to use some of the header field related selects listed on page
http://sip-router.org/wiki/cookbooks/selects/devel
but noticed that they are provided by s textops module. i also noticed
that s and k texops modules have functions whose names are the same.
should the two modules be merged or what in order to be able use stuff
from both?
-- juha