Initializes a new instance of the SipPeerToPeerEndpoint class with the given URI. To enable listening, use StartListening(ipEndpoint) in the ConnectionManager property.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
uri 
As 
String _
)
C#
public 
SipPeerToPeerEndpoint(
	
string 
uri
)
Visual C++
public:
SipPeerToPeerEndpoint(
	
String^ 
uri
)
JavaScript

Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint = 
function(
uri);

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.

Remarks

The use of this constructor creates its own instance of the SIP stack needed to support this endpoint. Since the creation is Sip Stack is memory consuming, it is not recommended to create too many instances (> 10) of endpoint using this ctor.

See Also