Module: sip-router
Branch: master
Commit: 424d2cabbe2e20c7ed134f6c9bd463811f2de63f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=424d2ca…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Sun Sep 16 17:20:38 2012 +0300
modules_k/usrloc: modified syslog messages on bad and non-local sockets
- Changed syslog message on non-local socket from warning to debug,
because non-local socket is ok when nathelper obtains the contacts and
overrides the socket.
- Corrected syslog messages on bad and non-local sockets.
---
modules_k/usrloc/dlist.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/usrloc/dlist.c b/modules_k/usrloc/dlist.c
index 3cc520d..2f14f16 100644
--- a/modules_k/usrloc/dlist.c
+++ b/modules_k/usrloc/dlist.c
@@ -223,12 +223,12 @@ static inline int get_all_db_ucontacts(void *buf, int len, unsigned
int flags,
} else {
if (parse_phostport( p, &host.s, &host.len,
&port, &proto)!=0) {
- LM_ERR("bad socket <%s>...ignoring\n", p);
+ LM_ERR("bad socket <%s>...set to 0\n", p);
sock = 0;
} else {
sock = grep_sock_info( &host, (unsigned short)port, proto);
if (sock==0) {
- LM_WARN("non-local socket <%s>...ignoring\n", p);
+ LM_DBG("non-local socket <%s>...set to 0\n", p);
}
}
}