Initializes a new instance of the SipPeerToPeerEndpoint class.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
uri 
As 
String, _
	
connectionManager 
As 

RealTimeServerConnectionManager, _
	
defaultTransportType 
As 

SipTransportType, _
	
proxyHost 
As 
String, _
	
proxyPort 
As 
Integer _
)
C#
public 
SipPeerToPeerEndpoint(
	
string 
uri,
	

RealTimeServerConnectionManager 
connectionManager,
	

SipTransportType 
defaultTransportType,
	
string 
proxyHost,
	
int 
proxyPort
)
Visual C++
public:
SipPeerToPeerEndpoint(
	
String^ 
uri, 
	

RealTimeServerConnectionManager^ 
connectionManager, 
	

SipTransportType 
defaultTransportType, 
	
String^ 
proxyHost, 
	
int 
proxyPort
)
JavaScript

Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint = 
function(
uri, 
connectionManager, 
defaultTransportType, 
proxyHost, 
proxyPort);

Parameters

uri
Type: String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
connectionManager
Type: Microsoft.Rtc.Signaling . . :: . RealTimeServerConnectionManager
The connection manager to use for this endpoint.
defaultTransportType
Type: Microsoft.Rtc.Signaling . . :: . SipTransportType
The default transport for outgoing messages, if the application did not override the transport explicitly. For example, invite URI can have transport type to override this. However, when proxy is used for the message, then only Tls specification in the message will override the defaultTransport type.
proxyHost
Type: String
The proxy host to use as first hop instead of direct connection to the other endpoint. This allowes us to route messages to endpoints that may not be directly reachable.
proxyPort
Type: Int32
The port to use for connecting to proxy.

See Also