Represents SIP requests.

The Requestclass defines a SIP request sent from a client transaction to a server transaction.

Client transactions are represented as a ClientTransaction object, and server transactions are represented as a ServerTransaction object. A request is sent by calling the SendRequest(Request) method. Any transaction may have only one associated request.

Requests are proxied by calling the CreateBranch () () () () and creating an associated ClientTransactionobject for the proxied request. To fork a request, call ServerTransaction.CreateBranchonce for each fork, and then call ClientTransaction.SendRequeston each element in the BranchCollection found at Branches .

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

When a response is returned for a specific request, a ResponseReceived event is raised on the ClientTransactionobject that sent the request, and a ResponseReceivedEventArgs object is supplied to the method that is provided to the ResponseReceivedEventHandler delegate.

Inheritance hierarchy

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

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

Syntax

Visual Basic (declaration)
Public 
Class 
Request _
	
Inherits 

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

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