Response class

Lync 2013

The Response class defines a SIP response sent from a server transaction to a client transaction.

To generate a response message for a request, call CreateResponse() on the associated Request object. Populate the Response message with the proper status class and reason phrase, and then pass it to SendResponse(Response), using the ServerTransaction object for the initial request.

There are two methods for receiving a response:

First, the response is filtered by the MSPL message filter and dispatched to a specific method that is defined in your application. (For more information, see the Dispatch built-in MSPL function.) The method handling the response must have a signature that matches the RequestReceivedEventHandler delegate. Second, the originating request that incurred the response was sent from a specific ClientTransaction object instance that is running on your application. In this case, the response is obtained by registering an event handler for the ResponseReceived event. In both cases, the response is returned as the Response property, which contains a Response object. In the case where a ClientTransaction object on the application incurred the response, the ClientTransaction property will contain a reference to the specific client transaction.


Namespace:  Microsoft.Rtc.Sip
Assembly:  ServerAgent (in ServerAgent.dll)

Public Class Response _
	Inherits Message
Dim instance As Response

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.