[sr-dev] git:3.3: modules_k/usrloc: modified syslog messages on bad and non-local sockets

admin at sip-router.org admin at sip-router.org
Sun Sep 16 16:28:38 CEST 2012


Module: sip-router
Branch: 3.3
Commit: edad1981336f706c0ee7f1b724439adba72a9c71
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=edad1981336f706c0ee7f1b724439adba72a9c71

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at 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.
(cherry picked from commit 424d2cabbe2e20c7ed134f6c9bd463811f2de63f)

---

 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 cb25871..9bcf004 100644
--- a/modules_k/usrloc/dlist.c
+++ b/modules_k/usrloc/dlist.c
@@ -201,12 +201,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);
 					}
 				}
 			}




More information about the sr-dev mailing list