Module: kamailio
Branch: master
Commit: a0e04cb2a06ec2cae9a066003732746cb8d609d0
URL:
https://github.com/kamailio/kamailio/commit/a0e04cb2a06ec2cae9a066003732746…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-11-26T11:25:46+01:00
rr: debug messages when setting send socket on double rr
---
Modified: src/modules/rr/loose.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a0e04cb2a06ec2cae9a066003732746…
Patch:
https://github.com/kamailio/kamailio/commit/a0e04cb2a06ec2cae9a066003732746…
---
diff --git a/src/modules/rr/loose.c b/src/modules/rr/loose.c
index fed7cc7140..1440b6da98 100644
--- a/src/modules/rr/loose.c
+++ b/src/modules/rr/loose.c
@@ -754,9 +754,13 @@ static inline void rr_do_force_send_socket(sip_msg_t *_m, sip_uri_t
*puri,
if ((si = grep_sock_info(&puri->host,
puri->port_no?puri->port_no:proto_default_port(puri->proto),
puri->proto)) != 0) {
+ LM_DBG("set send socket %p for local route uri: %.*s\n", si,
+ rt->nameaddr.uri.len, ZSW(rt->nameaddr.uri.s));
set_force_socket(_m, si);
} else if ((si = grep_sock_info(&puri->host, puri->port_no,
puri->proto)) != 0) {
+ LM_DBG("set send socket %p for local route uri: %.*s\n", si,
+ rt->nameaddr.uri.len, ZSW(rt->nameaddr.uri.s));
set_force_socket(_m, si);
} else {
if (enable_socket_mismatch_warning && rr2on) {
@@ -766,6 +770,9 @@ static inline void rr_do_force_send_socket(sip_msg_t *_m, sip_uri_t
*puri,
LM_WARN("second RR uri is not myself (%.*s)\n",
rt->nameaddr.uri.len, ZSW(rt->nameaddr.uri.s));
}
+ } else {
+ LM_DBG("no socket found to match second RR (%.*s)\n",
+ rt->nameaddr.uri.len, ZSW(rt->nameaddr.uri.s));
}
}
}