Partager via


SipAudioCall.AnswerCall(Int32) Method

Definition

Answers a call.

[Android.Runtime.Register("answerCall", "(I)V", "GetAnswerCall_IHandler")]
public virtual void AnswerCall (int timeout);
[<Android.Runtime.Register("answerCall", "(I)V", "GetAnswerCall_IHandler")>]
abstract member AnswerCall : int -> unit
override this.AnswerCall : int -> unit

Parameters

timeout
Int32

the timeout value in seconds. Default value (defined by SIP protocol) is used if timeout is zero or negative.

Attributes

Exceptions

if the SIP service fails to answer the call

Remarks

Answers a call. The attempt will be timed out if the call is not established within timeout seconds and Listener#onError onError(SipAudioCall, SipErrorCode.TIME_OUT, String) will be called.

Java documentation for android.net.sip.SipAudioCall.answerCall(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to