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.
- transportType
Type: Microsoft.Rtc.Signaling.SipTransportType
The type of transport to be used to connect to the server.
- 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.
- endpointId
Type: System.String
The epid to use. Can be null.
- useExclusiveConnectionForRegistration
Type: System.Boolean
Indicates if the connection used for registration should not be shared with other exclusive connections.
- retryOnRefreshFailure
Type: System.Boolean
Exceptions
Exception | Condition |
---|---|
ArgumentException | One of the arguments is not valid. |
ArgumentNullException | The serverName parameter is a string type with a value null. |