Class NatPolicy
Policy to use to pass through NATs/firewalls.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class NatPolicy : LinphoneObject
Properties
Core
Returns the Core object managing this nat policy, if any.
Declaration
public Core Core { get; }
Property Value
Type | Description |
---|---|
Core | the Core object associated. |
IceEnabled
Tell whether ICE is enabled.
Declaration
public bool IceEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Boolean value telling whether ICE is enabled. |
StunEnabled
Tell whether STUN is enabled.
Declaration
public bool StunEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Boolean value telling whether STUN is enabled. |
StunServer
Get the STUN/TURN server to use with this NAT policy.
Used when STUN or TURN are enabled.
Declaration
public string StunServer { get; set; }
Property Value
Type | Description |
---|---|
System.String | The STUN server used by this NAT policy. |
StunServerUsername
Get the username used to authenticate with the STUN/TURN server.
The authentication will search for a AuthInfo with this username. If it is not set the username of the currently used ProxyConfig is used to search for a LinphoneAuthInfo.
Declaration
public string StunServerUsername { get; set; }
Property Value
Type | Description |
---|---|
System.String | The username used to authenticate with the STUN/TURN server. |
TcpTurnTransportEnabled
Tells whether TCP TURN transport is enabled.
Used when TURN is enabled.
Declaration
public bool TcpTurnTransportEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Boolean value telling whether TCP TURN transport is enabled. |
TlsTurnTransportEnabled
Tells whether TLS TURN transport is enabled.
Used when TURN is enabled.
Declaration
public bool TlsTurnTransportEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Boolean value telling whether TLS TURN transport is enabled. |
TurnEnabled
Tell whether TURN is enabled.
Declaration
public bool TurnEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Boolean value telling whether TURN is enabled. |
UdpTurnTransportEnabled
Tells whether UDP TURN transport is enabled.
Used when TURN is enabled.
Declaration
public bool UdpTurnTransportEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Boolean value telling whether UDP TURN transport is enabled. |
UpnpEnabled
Tell whether uPnP is enabled.
Declaration
public bool UpnpEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Boolean value telling whether uPnP is enabled. |
Methods
Clear()
Clear a NAT policy (deactivate all protocols and unset the STUN server).
Declaration
public void Clear()
ResolveStunServer()
Start a STUN server DNS resolution.
Declaration
public void ResolveStunServer()