Class SIPDns
SIP specific DNS resolution.
Inheritance
System.Object
SIPDns
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: SIPSorcery.dll
Syntax
public static class SIPDns
Fields
|
Improve this Doc
View Source
CACHE_FAILED_RESULTS_DURATION
Declaration
public const int CACHE_FAILED_RESULTS_DURATION = 10
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DNS_RETRIES_PER_SERVER
Declaration
public const int DNS_RETRIES_PER_SERVER = 1
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DNS_TIMEOUT_SECONDS
Declaration
public const int DNS_TIMEOUT_SECONDS = 1
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MDNS_TLD
Declaration
public const string MDNS_TLD = "local"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
UseANYLookups
Don't use IN_ANY queries by default. These are useful if a DNS server supports them as they can
return IPv4 and IPv6 results in a single query. For DNS servers that don't support them it means
an extra delay.
Declaration
public static bool UseANYLookups
Field Value
Type |
Description |
System.Boolean |
|
Properties
|
Improve this Doc
View Source
LookupClient
The client performing the SIP DNS lookups. In normal circumstances this property does not need to
be set manually and care needs to be taken if it is. SIP relies heavily on DNS lookups and most
functions will fail if the DNS client is misconfigured.
Declaration
public static ILookupClient LookupClient { get; set; }
Property Value
Type |
Description |
DnsClient.ILookupClient |
|
Methods
|
Improve this Doc
View Source
ResolveAsync(SIPURI, Boolean, CancellationToken)
Resolve method that performs either an A or AAAA record lookup. If required
a SRV record lookup will be performed prior to the A or AAAA lookup.
Declaration
public static Task<SIPEndPoint> ResolveAsync(SIPURI uri, bool preferIPv6, CancellationToken ct)
Parameters
Type |
Name |
Description |
SIPURI |
uri |
The SIP URI to lookup.
|
System.Boolean |
preferIPv6 |
Whether the address lookup would prefer to have an IPv6 address
returned.
|
System.Threading.CancellationToken |
ct |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<SIPEndPoint> |
A SIPEndPoint or null.
|
|
Improve this Doc
View Source
ResolveFromCache(SIPURI, Boolean)
Declaration
public static SIPEndPoint ResolveFromCache(SIPURI uri, bool preferIPv6)
Parameters
Type |
Name |
Description |
SIPURI |
uri |
|
System.Boolean |
preferIPv6 |
|
Returns