org.mobicents.servlet.sip.core
Class DNSAddressResolver
java.lang.Object
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
|
Method Summary |
static java.util.Map<java.lang.String,java.lang.String> |
foundCachedEntry(java.lang.String host,
java.lang.String transport,
org.xbill.DNS.Record[] records)
|
javax.sip.address.Hop |
resolveAddress(javax.sip.address.Hop hop)
|
static 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 |
DNSAddressResolver
public DNSAddressResolver(SipApplicationDispatcher sipApplicationDispatcher)
- Parameters:
sipApplicationDispatcherImpl -
resolveAddress
public javax.sip.address.Hop resolveAddress(javax.sip.address.Hop hop)
- Specified by:
resolveAddress in interface gov.nist.core.net.AddressResolver
resolveHostByDnsSrvLookup
public static javax.sip.address.Hop resolveHostByDnsSrvLookup(javax.sip.address.Hop hop)
- Resolve the Host by doing a SRV lookup on it
- Parameters:
host - the hostport - the porttransport - the transport
- Returns:
foundCachedEntry
public static java.util.Map<java.lang.String,java.lang.String> foundCachedEntry(java.lang.String host,
java.lang.String transport,
org.xbill.DNS.Record[] records)
Copyright © 2011. All Rights Reserved.