[SR-Users] loose_route() does not find socket by name
Juha Heinanen
jh at tutpro.com
Fri Feb 12 13:58:10 CET 2021
Daniel-Constantin Mierla writes:
> Do you have the rr modparam related socket name mode set?
Yes, sorry, forgot to mention it:
modparam("rr", "sockname_mode", 1)
I have added some debug to loose.c and some converted DBGs to INFOs in
rr_do_force_send_socket() function:
if(rr_sockname_mode!=0 && puri->params.len>0) {
s = puri->params;
if(s.s[s.len-1]==';') {
s.len--;
}
LM_INFO("Looking ;sn param from %.*s\n", s.len, s.s);
...
LM_INFO("use of sockname parameter enabled, but failed to find it\n");
free_params(plist);
}
This is what I got to syslog:
eb 12 14:53:07 lab /usr/bin/sip-proxy[8662]: INFO: rr [loose.c:759]: rr_do_force_send_socket(): Looking ;sn param from transport=tls;r2=on;sn=ext_tls;lr;n1;savp=avp;pm=0
Feb 12 14:53:07 lab /usr/bin/sip-proxy[8662]: INFO: rr [loose.c:783]: rr_do_force_send_socket(): use of sockname parameter enabled, but failed to find it
Feb 12 14:53:07 lab /usr/bin/sip-proxy[8662]: WARNING: rr [loose.c:800]: rr_do_force_send_socket(): no socket found to match second RR (sip:tenantX.teams.tutpro.com:8007;transport=tls;r2=on;sn=ext_tls;lr;n1;savp=avp;pm=0)
So looks like some bug in the looking, since ;sn is there.
-- Juha
More information about the sr-users
mailing list