Compartir a través de


SipAudioCall.MakeCall(SipProfile, SipSession, Int32) Method

Definition

Initiates an audio call to the specified profile.

[Android.Runtime.Register("makeCall", "(Landroid/net/sip/SipProfile;Landroid/net/sip/SipSession;I)V", "GetMakeCall_Landroid_net_sip_SipProfile_Landroid_net_sip_SipSession_IHandler")]
public virtual void MakeCall (Android.Net.Sip.SipProfile? peerProfile, Android.Net.Sip.SipSession? sipSession, int timeout);
[<Android.Runtime.Register("makeCall", "(Landroid/net/sip/SipProfile;Landroid/net/sip/SipSession;I)V", "GetMakeCall_Landroid_net_sip_SipProfile_Landroid_net_sip_SipSession_IHandler")>]
abstract member MakeCall : Android.Net.Sip.SipProfile * Android.Net.Sip.SipSession * int -> unit
override this.MakeCall : Android.Net.Sip.SipProfile * Android.Net.Sip.SipSession * int -> unit

Parameters

peerProfile
SipProfile

the SIP profile to make the call to

sipSession
SipSession

the SipSession for carrying out the call

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 create a session for the call or VOIP API is not supported by the device

Remarks

Initiates an audio call to the specified profile. 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.makeCall(android.net.sip.SipProfile, android.net.sip.SipSession, 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

See also