RealTimeEndpoint Constructor (String, SipTransportType, String, Boolean, Int32, String, Boolean, Boolean)

Creates a new instance of SipEndpoint. This endpoint is server-based. By default, use port 5060 for TCP and 5061 for TLS. To use a port other than these, the caller should set the ServerPort property before trying to register.

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

Syntax

'Declaration
Protected Sub New ( _
    uri As String, _
    transportType As SipTransportType, _
    serverName As String, _
    useAutomaticConfiguration As Boolean, _
    serverPort As Integer, _
    endpointId As String, _
    useExclusiveConnectionForRegistration As Boolean, _
    retryOnRefreshFailure As Boolean _
)
'Usage
Dim uri As String
Dim transportType As SipTransportType
Dim serverName As String
Dim useAutomaticConfiguration As Boolean
Dim serverPort As Integer
Dim endpointId As String
Dim useExclusiveConnectionForRegistration As Boolean
Dim retryOnRefreshFailure As Boolean

Dim instance As New RealTimeEndpoint(uri, transportType, _
    serverName, useAutomaticConfiguration, _
    serverPort, endpointId, useExclusiveConnectionForRegistration, _
    retryOnRefreshFailure)
protected RealTimeEndpoint(
    string uri,
    SipTransportType transportType,
    string serverName,
    bool useAutomaticConfiguration,
    int serverPort,
    string endpointId,
    bool useExclusiveConnectionForRegistration,
    bool retryOnRefreshFailure
)

Parameters

  • uri
    Type: System.String
    The URI of the user identifying the endpoint.
  • serverName
    Type: System.String
    The name of the server to be used.
  • useAutomaticConfiguration
    Type: System.Boolean
    Use a DNS configured server.
  • serverPort
    Type: System.Int32
    The port to be used to connect to the server. User 0 to use default.
  • useExclusiveConnectionForRegistration
    Type: System.Boolean
    Indicates if the connection used for registration should not be shared with other exclusive connections.

Exceptions

Exception Condition
ArgumentException

One of the arguments is not valid.

ArgumentNullException

The serverName parameter is a string type with a value null.

See Also

Reference

RealTimeEndpoint Class

RealTimeEndpoint Members

RealTimeEndpoint Overload

Microsoft.Rtc.Signaling Namespace