RequestEvent req_event = requestEvent.getRequestEvent();
Request req_msg = req_event.getRequest();
ToHeader to = (ToHeader) req_msg.getHeader(ToHeader.NAME);
URI addr = to.getAddress().getURI();
// look up the database
ArrayList contacts = location.getLocation(addr);
if ((isDebugEnabled() == true) && (contacts != null))
{
Iterator i = contacts.iterator();
while (i.hasNext())
{
debug("Found contact URI = " + ((URI) i.next()).toString()
+ " for 'To' address = " + addr.toString()
+ " in request message " + req_msg.getMethod());
}
}
SipCommunicator proxy = requestEvent.getSipCommunicator();