SignalingSession.TerminatedByRemote Event

Raised when the remote side terminates the session by sending a Bye or Cancel message. This event is optional for an application. This event is useful only if the application is interested in accessing the headers in the Bye or Cancel message for custom scenarios.

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

Syntax

'Declaration
Public Event TerminatedByRemote As EventHandler(Of SipRequestReceivedEventArgs)
'Usage
Dim instance As SignalingSession
Dim handler As EventHandler(Of SipRequestReceivedEventArgs)

AddHandler instance.TerminatedByRemote, handler
public event EventHandler<SipRequestReceivedEventArgs> TerminatedByRemote

Remarks

In the case of a Bye message with headers, there is no way to access a 200 OK message using this event. Bye messages are sent only when an application calls either of the overloaded SignalingSession.BeginTerminate methods, so if an application needs access to the 200 OK message, use the value returned by either of these methods.

See Also

Reference

SignalingSession Class

SignalingSession Members

Microsoft.Rtc.Signaling Namespace