Compartir a través de


OfferInReInviteEventArgs.Accept Method

Synchronously accepts the offer and triggers IOfferAnswer.GetAnswer calls to send the answer.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Function Accept ( _
    signalingHeaders As IEnumerable(Of SignalingHeader) _
) As SipRequestData
'Usage
Dim instance As OfferInReInviteEventArgs
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim returnValue As SipRequestData

returnValue = instance.Accept(signalingHeaders)
public SipRequestData Accept(
    IEnumerable<SignalingHeader> signalingHeaders
)

Parameters

Return Value

Type: Microsoft.Rtc.Signaling.SipRequestData

Exceptions

Exception Condition
InvalidOperationException

Thrown when final response has already been sent.

ArgumentException

Thrown when there are problems with arguments supplied.

OperationTimeoutException

Thrown when ack is not received.

RealTimeException

Thrown when the response cannot be sent for other reasons.

Remarks

The application can call this method when it is ready with the answer for the offer represented in this event arg.

This method is not recommended for UI threads or scalable server applications.

See Also

Reference

OfferInReInviteEventArgs Class

OfferInReInviteEventArgs Members

Microsoft.Rtc.Signaling Namespace