org.mobicents.servlet.sip.core
Class DNSAddressResolver

java.lang.Object
  extended by org.mobicents.servlet.sip.core.DNSAddressResolver
All Implemented Interfaces:
gov.nist.core.net.AddressResolver

public class DNSAddressResolver
extends java.lang.Object
implements gov.nist.core.net.AddressResolver

The Address resolver to resolve proxy domain to a hop to the outbound proxy server by doing SRV lookup of the host of the Hop as mandated by rfc3263.
some of the rfc3263 can hardly be implemented and NAPTR query can hardly be done since the stack populate port and transport automatically.

Author:
M. Ranganathan, J. Deruelle

Constructor Summary
DNSAddressResolver(SipApplicationDispatcher sipApplicationDispatcher)
           
 
Method Summary
 javax.sip.address.Hop resolveAddress(javax.sip.address.Hop hop)
           
protected  javax.sip.address.Hop resolveHostByDnsSrvLookup(javax.sip.address.Hop hop)
          Resolve the Host by doing a SRV lookup on it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSAddressResolver

public DNSAddressResolver(SipApplicationDispatcher sipApplicationDispatcher)
Parameters:
sipApplicationDispatcherImpl -
Method Detail

resolveAddress

public javax.sip.address.Hop resolveAddress(javax.sip.address.Hop hop)
Specified by:
resolveAddress in interface gov.nist.core.net.AddressResolver

resolveHostByDnsSrvLookup

protected javax.sip.address.Hop resolveHostByDnsSrvLookup(javax.sip.address.Hop hop)
Resolve the Host by doing a SRV lookup on it

Parameters:
host - the host
port - the port
transport - the transport
Returns:


Copyright © 2008. All Rights Reserved.