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
Visual Basic (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 _
)
|
C# |
protected
RealTimeEndpoint(
string
uri,
SipTransportType
transportType,
string
serverName,
bool
useAutomaticConfiguration,
int
serverPort,
string
endpointId,
bool
useExclusiveConnectionForRegistration,
bool
retryOnRefreshFailure
)
|
Visual C++ |
protected:
RealTimeEndpoint(
String^
uri,
SipTransportType
transportType,
String^
serverName,
bool
useAutomaticConfiguration,
int
serverPort,
String^
endpointId,
bool
useExclusiveConnectionForRegistration,
bool
retryOnRefreshFailure
)
|
JavaScript |
Microsoft.Rtc.Signaling.RealTimeEndpoint =
function(
uri,
transportType,
serverName,
useAutomaticConfiguration,
serverPort,
endpointId,
useExclusiveConnectionForRegistration,
retryOnRefreshFailure);
|
Parameters
-
uri
- Type:
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:
String
The name of the server to be used.
-
useAutomaticConfiguration
- Type:
Boolean
Use a DNS configured server.
-
serverPort
- Type:
Int32
The port to be used to connect to the server. User 0 to use
default.
-
endpointId
- Type:
String
The epid to use. Can be null.
-
useExclusiveConnectionForRegistration
- Type:
Boolean
Indicates if the connection used for registration should not
be shared with other exclusive connections.
-
retryOnRefreshFailure
- Type:
Boolean
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