SipPeerToPeerEndpoint Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SipPeerToPeerEndpoint()
Caution
This constructor is obsolete. Please create a ownerUri and ConnectionManager and use another overload.
Initializes a new instance of the SipPeerToPeerEndpoint class.
public:
SipPeerToPeerEndpoint();
[System.Obsolete("This constructor is obsolete. Please create a ownerUri and ConnectionManager and use another overload.")]
public SipPeerToPeerEndpoint ();
Public Sub New ()
- Attributes
Exceptions
Thrown when the local host name cannot be retrieved.
Remarks
The URI for the endpoint defaults to local host. To enable listening, use StartListening(ipEndpoint) in the ConnectionManager property. The use of this constructor creates its own instance of the SIP stack needed to support this endpoint. Since the creation of Sip Stack is memory consuming, it is not recommended to create too many instances (> 10) of endpoint using this constructor.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager, SipTransportType, String, Int32, String)
Initializes a new instance of SipPeerToPeerEndpoint.
public:
SipPeerToPeerEndpoint(System::String ^ uri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager, Microsoft::Rtc::Signaling::SipTransportType defaultTransportType, System::String ^ proxyHost, int proxyPort, System::String ^ gruu);
public SipPeerToPeerEndpoint (string uri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager, Microsoft.Rtc.Signaling.SipTransportType defaultTransportType, string proxyHost, int proxyPort, string gruu);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager * Microsoft.Rtc.Signaling.SipTransportType * string * int * string -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (uri As String, connectionManager As RealTimeServerConnectionManager, defaultTransportType As SipTransportType, proxyHost As String, proxyPort As Integer, gruu As String)
Parameters
- uri
- String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint. Can be null.
- defaultTransportType
- 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
- 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
- Int32
The port to use for connecting to proxy.
- gruu
- String
The GRUU to be used for the endpoint
Exceptions
Thrown when some supplied argument is invalid.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager, SipTransportType, String, Int32)
Initializes a new instance of the SipPeerToPeerEndpoint class.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager, Microsoft::Rtc::Signaling::SipTransportType defaultTransportType, System::String ^ proxyHost, int proxyPort);
public SipPeerToPeerEndpoint (string ownerUri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager, Microsoft.Rtc.Signaling.SipTransportType defaultTransportType, string proxyHost, int proxyPort);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager * Microsoft.Rtc.Signaling.SipTransportType * string * int -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String, connectionManager As RealTimeServerConnectionManager, defaultTransportType As SipTransportType, proxyHost As String, proxyPort As Integer)
Parameters
- ownerUri
- String
The URI for the owner of this endpoint. This should not include port.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint.
- defaultTransportType
- 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
- 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
- Int32
The port to use for connecting to proxy.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager, SipTransportType, String)
Initializes a new instance of SipPeerToPeerEndpoint.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager, Microsoft::Rtc::Signaling::SipTransportType defaultTransportType, System::String ^ gruu);
public SipPeerToPeerEndpoint (string ownerUri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager, Microsoft.Rtc.Signaling.SipTransportType defaultTransportType, string gruu);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager * Microsoft.Rtc.Signaling.SipTransportType * string -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String, connectionManager As RealTimeServerConnectionManager, defaultTransportType As SipTransportType, gruu As String)
Parameters
- ownerUri
- String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint. Can be null.
- defaultTransportType
- 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.
- gruu
- String
The GRUU to be used for the endpoint
Exceptions
Thrown when some supplied argument is invalid.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager, SipTransportType, IEnumerable<SignalingHeader>)
Initializes a new instance of the SipPeerToPeerEndpoint class.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager, Microsoft::Rtc::Signaling::SipTransportType defaultTransportType, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ additionalHeaders);
public SipPeerToPeerEndpoint (string ownerUri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager, Microsoft.Rtc.Signaling.SipTransportType defaultTransportType, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> additionalHeaders);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager * Microsoft.Rtc.Signaling.SipTransportType * seq<Microsoft.Rtc.Signaling.SignalingHeader> -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String, connectionManager As RealTimeServerConnectionManager, defaultTransportType As SipTransportType, additionalHeaders As IEnumerable(Of SignalingHeader))
Parameters
- ownerUri
- String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint.
- defaultTransportType
- 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.
- additionalHeaders
- IEnumerable<SignalingHeader>
Additional headers to add to every SIP message sent by this endpoint.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager, SipTransportType, String, Int32, IEnumerable<SignalingHeader>)
Initializes a new instance of the SipPeerToPeerEndpoint class.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager, Microsoft::Rtc::Signaling::SipTransportType defaultTransportType, System::String ^ proxyHost, int proxyPort, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ additionalHeaders);
public SipPeerToPeerEndpoint (string ownerUri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager, Microsoft.Rtc.Signaling.SipTransportType defaultTransportType, string proxyHost, int proxyPort, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> additionalHeaders);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager * Microsoft.Rtc.Signaling.SipTransportType * string * int * seq<Microsoft.Rtc.Signaling.SignalingHeader> -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String, connectionManager As RealTimeServerConnectionManager, defaultTransportType As SipTransportType, proxyHost As String, proxyPort As Integer, additionalHeaders As IEnumerable(Of SignalingHeader))
Parameters
- ownerUri
- String
The URI for the owner of this endpoint. This should not include port.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint.
- defaultTransportType
- 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
- 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
- Int32
The port to use for connecting to proxy.
- additionalHeaders
- IEnumerable<SignalingHeader>
Additional headers to add to every SIP message sent by this endpoint.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager, SipPeerToPeerEndpointSettings)
Initializes a new instance of the SipPeerToPeerEndpoint class.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager, Microsoft::Rtc::Signaling::SipPeerToPeerEndpointSettings ^ settings);
public SipPeerToPeerEndpoint (string ownerUri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager, Microsoft.Rtc.Signaling.SipPeerToPeerEndpointSettings settings);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager * Microsoft.Rtc.Signaling.SipPeerToPeerEndpointSettings -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String, connectionManager As RealTimeServerConnectionManager, settings As SipPeerToPeerEndpointSettings)
Parameters
- ownerUri
- String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint.
- settings
- SipPeerToPeerEndpointSettings
Additional settings to configure the endpoint or null.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager)
Initializes a new instance of the SipPeerToPeerEndpoint class.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager);
public SipPeerToPeerEndpoint (string ownerUri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String, connectionManager As RealTimeServerConnectionManager)
Parameters
- ownerUri
- String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint.
Applies to
SipPeerToPeerEndpoint(String)
Caution
This constructor is obsolete. Please create a ConnectionManager and use another overload.
Initializes a new instance of the SipPeerToPeerEndpoint class with the given URI. To enable listening, use StartListening(ipEndpoint) in the ConnectionManager property.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri);
[System.Obsolete("This constructor is obsolete. Please create a ConnectionManager and use another overload.")]
public SipPeerToPeerEndpoint (string ownerUri);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String)
Parameters
- ownerUri
- String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
- Attributes
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.
Applies to
SipPeerToPeerEndpoint(String, RealTimeServerConnectionManager, SipTransportType)
Initializes a new instance of the SipPeerToPeerEndpoint class.
public:
SipPeerToPeerEndpoint(System::String ^ ownerUri, Microsoft::Rtc::Signaling::RealTimeServerConnectionManager ^ connectionManager, Microsoft::Rtc::Signaling::SipTransportType defaultTransportType);
public SipPeerToPeerEndpoint (string ownerUri, Microsoft.Rtc.Signaling.RealTimeServerConnectionManager connectionManager, Microsoft.Rtc.Signaling.SipTransportType defaultTransportType);
new Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint : string * Microsoft.Rtc.Signaling.RealTimeServerConnectionManager * Microsoft.Rtc.Signaling.SipTransportType -> Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint
Public Sub New (ownerUri As String, connectionManager As RealTimeServerConnectionManager, defaultTransportType As SipTransportType)
Parameters
- ownerUri
- String
The URI for this endpoint. This should not include port. Port will be automatically added depending on the listening port, if any.
- connectionManager
- RealTimeServerConnectionManager
The connection manager to use for this endpoint.
- defaultTransportType
- 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.