The Responseclass 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 Responsemessage 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 Responseobject. In the case where a ClientTransactionobject on the application incurred the response, the ClientTransaction property will contain a reference to the specific client transaction.

Inheritance hierarchy

System . . :: . . Object
   ReplicatedObject
     Microsoft.Rtc.Sip . . :: . . Message
       Microsoft.Rtc.Sip . . :: . . Response

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

Syntax

Visual Basic (declaration)
Public 
Class 
Response _
	
Inherits 

Message
Visual Basic (usage)
Dim 
instance 
As 
Response
C#
public 
class 
Response : 

Message

Thread safety

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

See also