SignalingSession.TerminatedByRemote Event

Definition

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.

public:
 event EventHandler<Microsoft::Rtc::Signaling::SipRequestReceivedEventArgs ^> ^ TerminatedByRemote;
public event EventHandler<Microsoft.Rtc.Signaling.SipRequestReceivedEventArgs> TerminatedByRemote;
member this.TerminatedByRemote : EventHandler<Microsoft.Rtc.Signaling.SipRequestReceivedEventArgs> 
Public Custom Event TerminatedByRemote As EventHandler(Of SipRequestReceivedEventArgs) 

Event Type

EventHandler<SipRequestReceivedEventArgs>

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.

Applies to