Module: kamailio
Branch: master
Commit: b814c5aadc690ceeca75e6ce25bf850ddfc4b44a
URL:
https://github.com/kamailio/kamailio/commit/b814c5aadc690ceeca75e6ce25bf850…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-10-27T09:41:51+02:00
rr: more log details when 2nd rr with r2=on is not matching a local socket
---
Modified: modules/rr/loose.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b814c5aadc690ceeca75e6ce25bf850…
Patch:
https://github.com/kamailio/kamailio/commit/b814c5aadc690ceeca75e6ce25bf850…
---
diff --git a/modules/rr/loose.c b/modules/rr/loose.c
index 71d7d43..afcbbbc 100644
--- a/modules/rr/loose.c
+++ b/modules/rr/loose.c
@@ -125,7 +125,7 @@ static inline int find_first_route(struct sip_msg* _m)
static inline int is_myself(sip_uri_t *_puri)
{
int ret;
-
+
ret = check_self(&_puri->host,
_puri->port_no?_puri->port_no:SIP_PORT, 0);/* match all protos*/
if (ret < 0) return 0;
@@ -138,7 +138,7 @@ static inline int is_myself(sip_uri_t *_puri)
return 0;
}
#endif
-
+
if(ret==1) {
/* match on host:port, but if gruu, then fail */
if(_puri->gr.s!=NULL)
@@ -831,8 +831,14 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
if (si) {
set_force_socket(_m, si);
} else {
- if (enable_socket_mismatch_warning)
- LM_WARN("no socket found for match second RR\n");
+ if (enable_socket_mismatch_warning) {
+ LM_WARN("no socket found for match second RR (%.*s)\n",
+ rt->nameaddr.uri.len, ZSW(rt->nameaddr.uri.s));
+ if(!is_myself(&puri)) {
+ LM_WARN("second RR uri si not myself (%.*s)\n",
+ rt->nameaddr.uri.len, ZSW(rt->nameaddr.uri.s));
+ }
+ }
}
}