Partager via


ClientTransaction.SendRequest

ClientTransaction.SendRequest

The SendRequest method sends a SIP request to a server transaction on a proxy or UAS.

Syntax

[C#]

public void SendRequest(
  Request request
);

Syntax

[Visual Basic .NET]

Public Sub SendRequest( _
  ByVal request As Request _
)

Parameters

  • Request
    Specifies the SIP request to send to the server transaction (and, eventually, to the UAS). A SIP request contains a SIP method type (such as INVITE or ACK) and the SIP URI the method will be sent to.

Return Values

This method has no return values.

Remarks

Two requests cannot be sent through the same client transaction. If a second request is attempted, InvalidOperationException will be thrown.

To fork a request, call ServerTransaction.CreateBranch on the parent ServerTransaction object handling the originating request. SendRequest must be called immediately on the new ClientTransaction object created by the call to ServerTransaction.CreateBranch.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

Request Sip Class

ClientTransaction