Share via


SipPeerToPeerEndpoint Constructor (String, RealTimeServerConnectionManager, SipTransportType, String, Int32, String)

Initializes a new instance of SipPeerToPeerEndpoint.

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

Syntax

'Declaration
Public Sub New ( _
    uri As String, _
    connectionManager As RealTimeServerConnectionManager, _
    defaultTransportType As SipTransportType, _
    proxyHost As String, _
    proxyPort As Integer, _
    gruu As String _
)
'Usage
Dim uri As String
Dim connectionManager As RealTimeServerConnectionManager
Dim defaultTransportType As SipTransportType
Dim proxyHost As String
Dim proxyPort As Integer
Dim gruu As String

Dim instance As New SipPeerToPeerEndpoint(uri, connectionManager, _
    defaultTransportType, proxyHost, _
    proxyPort, gruu)
public SipPeerToPeerEndpoint(
    string uri,
    RealTimeServerConnectionManager connectionManager,
    SipTransportType defaultTransportType,
    string proxyHost,
    int proxyPort,
    string gruu
)

Parameters

  • uri
    Type: System.String
    The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
  • 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: System.String
    The proxy host to use as first hop instead of direct connection to the other endpoint. This allows us to route messages to endpoints that may not be directly reachable.
  • proxyPort
    Type: System.Int32
    The port to use for connecting to proxy.

Exceptions

Exception Condition
ArgumentException

Thrown when some supplied argument is invalid.

See Also

Reference

SipPeerToPeerEndpoint Class

SipPeerToPeerEndpoint Members

SipPeerToPeerEndpoint Overload

Microsoft.Rtc.Signaling Namespace