{
for (SipConnector connector : connectors)
{
SipURI uri = new SipURIImpl(null, connector.getAddr().getHostAddress(), connector.getLocalPort());
if (!outbounds.contains(uri))
outbounds.add(new ReadOnlySipURI(uri));
if (!externals.contains(connector.getSipUri()))
externals.add(new ReadOnlySipURI(connector.getSipUri()));
}
}
setAttribute(SipServlet.OUTBOUND_INTERFACES, Collections.unmodifiableList(outbounds));
setAttribute(EXTERNAL_INTERFACES, Collections.unmodifiableList(externals));