Share via


SipManager.Open Method

Definition

Overloads

Open(SipProfile)

Opens the profile for making generic SIP calls.

Open(SipProfile, PendingIntent, ISipRegistrationListener)

Opens the profile for making calls and/or receiving generic SIP calls.

Open(SipProfile)

Opens the profile for making generic SIP calls.

[Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;)V", "GetOpen_Landroid_net_sip_SipProfile_Handler")]
public virtual void Open (Android.Net.Sip.SipProfile? localProfile);
[<Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;)V", "GetOpen_Landroid_net_sip_SipProfile_Handler")>]
abstract member Open : Android.Net.Sip.SipProfile -> unit
override this.Open : Android.Net.Sip.SipProfile -> unit

Parameters

localProfile
SipProfile

the SIP profile to make calls from

Attributes

Exceptions

if the profile contains incorrect settings or calling the SIP service results in an error

Remarks

Opens the profile for making generic SIP calls. The caller may make subsequent calls through #makeAudioCall. If one also wants to receive calls on the profile, use #open(SipProfile, PendingIntent, SipRegistrationListener) instead.

Java documentation for android.net.sip.SipManager.open(android.net.sip.SipProfile).

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

Open(SipProfile, PendingIntent, ISipRegistrationListener)

Opens the profile for making calls and/or receiving generic SIP calls.

[Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;Landroid/app/PendingIntent;Landroid/net/sip/SipRegistrationListener;)V", "GetOpen_Landroid_net_sip_SipProfile_Landroid_app_PendingIntent_Landroid_net_sip_SipRegistrationListener_Handler")]
public virtual void Open (Android.Net.Sip.SipProfile? localProfile, Android.App.PendingIntent? incomingCallPendingIntent, Android.Net.Sip.ISipRegistrationListener? listener);
[<Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;Landroid/app/PendingIntent;Landroid/net/sip/SipRegistrationListener;)V", "GetOpen_Landroid_net_sip_SipProfile_Landroid_app_PendingIntent_Landroid_net_sip_SipRegistrationListener_Handler")>]
abstract member Open : Android.Net.Sip.SipProfile * Android.App.PendingIntent * Android.Net.Sip.ISipRegistrationListener -> unit
override this.Open : Android.Net.Sip.SipProfile * Android.App.PendingIntent * Android.Net.Sip.ISipRegistrationListener -> unit

Parameters

localProfile
SipProfile

the SIP profile to receive incoming calls for

incomingCallPendingIntent
PendingIntent

When an incoming call is received, the SIP service will call PendingIntent#send(Context, int, Intent) to send back the intent to the caller with #INCOMING_CALL_RESULT_CODE as the result code and the intent to fill in the call ID and session description information. It cannot be null.

listener
ISipRegistrationListener

to listen to registration events; can be null

Attributes

Exceptions

if incomingCallPendingIntent is null

if the profile contains incorrect settings or calling the SIP service results in an error

Remarks

Opens the profile for making calls and/or receiving generic SIP calls. The caller may make subsequent calls through #makeAudioCall. If the auto-registration option is enabled in the profile, the SIP service will register the profile to the corresponding SIP provider periodically in order to receive calls from the provider. When the SIP service receives a new call, it will send out an intent with the provided action string. The intent contains a call ID extra and an offer session description string extra. Use #getCallId and #getOfferSessionDescription to retrieve those extras.

Java documentation for android.net.sip.SipManager.open(android.net.sip.SipProfile, android.app.PendingIntent, android.net.sip.SipRegistrationListener).

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.

See also

Applies to