Reduces log level for errors that often occur with SIP keep alives in an effort to preserve readability in log files. Reported by Andreas Kuckartz.

cusax-fix
Emil Ivov 15 years ago
parent ea51b98a11
commit f19eb013da

@ -93,7 +93,7 @@ public static Object getApplicationData(Object container, String key)
{
if (container == null)
{
logger.warn("container is null");
logger.debug("container is null");
return null;
}
if (key == null)

@ -923,7 +923,7 @@ private ProtocolProviderServiceSipImpl findTargetFor(Request request)
// fallback on the first candidate
ProtocolProviderServiceSipImpl target =
candidates.iterator().next();
logger.warn("Will randomly dispatch to \""
logger.info("Will randomly dispatch to \""
+ target.getAccountID()
+ "\" because there is ambiguity on the username from"
+ " the Request-URI");
@ -935,8 +935,9 @@ private ProtocolProviderServiceSipImpl findTargetFor(Request request)
// fallback on any account
ProtocolProviderServiceSipImpl target =
currentListenersCopy.iterator().next();
if (logger.isInfoEnabled())
logger.info("Will randomly dispatch to \"" + target.getAccountID()
if (logger.isDebugEnabled())
logger.debug("Will randomly dispatch to \"" + target
.getAccountID()
+ "\" because the username in the Request-URI "
+ "is unknown or empty");
if (logger.isTraceEnabled())
@ -1072,7 +1073,8 @@ public static ServerTransaction getOrCreateServerTransaction(
/**
* Returns a local address to use with the specified TCP destination.
* The method forces the JAIN-SIP stack to creates and binds (if necessary)
* The method forces the JAIN-SIP stack to create
* s and binds (if necessary)
* and return a socket connected to the specified destination address and
* port and then return its local address.
*

Loading…
Cancel
Save