Represents SIP server transactions.
The ServerTransactionclass defines a SIP server transaction object located on a SIP proxy or user agent server (UAS).
A ServerTransactioninstance is generated as the ServerTransaction property, available on the RequestReceivedEventArgs object dispatched to a specific method by the MSPL script filter. (For more information, see the Dispatch MSPL built-in function.) There are no public constructors for this class.
The request being serviced by this server transaction can be forwarded by calling CreateBranch () () () () , which will create an associated ClientTransaction . To fork a message, CreateBranchcan be called for each fork. The collection of branches for this server transaction can be obtained as a BranchCollection object by referencing the Branches property. Requests are sent by calling SendRequest(Request) on each branch.
To send a response for the request the server transaction was created to service, call [M:Microsoft.Rtc.Sip.ServerTransaction.SendResponse(Microsoft.Rtc.Sip.Response] with the Response object created by calling CreateResponse(Int32) on the Request object available in the Request property.
The ServerTransactionclass is derived from the Transaction class.
Inheritance hierarchy
ReplicatedObject
Microsoft.Rtc.Sip . . :: . . Transaction
Microsoft.Rtc.Sip . . :: . . ServerTransaction
Assembly: ServerAgent(in ServerAgent.dll)
Syntax
Visual Basic (declaration) |
---|
Public Class ServerTransaction _ Inherits Transaction |
Visual Basic (usage) |
---|
Dim instance As ServerTransaction |
C# |
---|
public class ServerTransaction : Transaction |
Remarks
Server transactions are used by UASs and proxies.