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.
Assembly: ServerAgent(in ServerAgent.dll)