Revision: 9534
Author: jean.deruelle
Date: Tue Jan 19 00:46:21 2010
Log: update Issue 1169

Fix for TCK regression
http://code.google.com/p/mobicents/source/detail?r=9534

Modified:
/trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyImpl.java

=======================================
--- /trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyImpl.java Mon Dec 21 08:11:10 2009 +++ /trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyImpl.java Tue Jan 19 00:46:21 2010
@@ -734,9 +734,10 @@
                String address = inetAddress.getHostAddress();
List<SipURI> list = this.sipFactoryImpl.getSipNetworkInterfaceManager().getOutboundInterfaces();
                SipURI networkInterface = null;
-               for(SipURI networkInterfaceURI:list) {
+               for(SipURI networkInterfaceURI : list) {
                        if(networkInterfaceURI.toString().contains(address)) {
                                networkInterface = networkInterfaceURI;
+                               break;
                        }
                }

@@ -754,9 +755,10 @@
                        + ":" + inetSocketAddress.getPort();
List<SipURI> list = this.sipFactoryImpl.getSipNetworkInterfaceManager().getOutboundInterfaces();
                SipURI networkInterface = null;
-               for(SipURI networkInterfaceURI:list) {
+               for(SipURI networkInterfaceURI : list) {
                        if(networkInterfaceURI.toString().contains(address)) {
                                networkInterface = networkInterfaceURI;
+                               break;
                        }
                }

Reply via email to