Android.Net.Sip.SipManager.Open Method
Opens the profile for making calls and/or receiving generic SIP calls.

Syntax

[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 (SipProfile localProfile, Android.App.PendingIntent incomingCallPendingIntent, ISipRegistrationListener listener)

See Also

SipManager.GetCallId(Android.Content.Intent)
SipManager.GetOfferSessionDescription(Android.Content.Intent)
SipManager.TakeAudioCall(Android.Content.Intent, .Listener)
SipManager.IsIncomingCallIntent(Android.Content.Intent)
SipManager.GetCallId(Android.Content.Intent)
SipManager.GetOfferSessionDescription(Android.Content.Intent)

Parameters

localProfile
the SIP profile to receive incoming calls for
incomingCallPendingIntent
When an incoming call is received, the SIP service will call Android.App.PendingIntent.Send(Android.Content.Context, Android.App.Result, Android.App.Result) to send back the intent to the caller with SipManager.IncomingCallResultCode as the result code and the intent to fill in the call ID and session description information. It cannot be null.
listener
to listen to registration events; can be null

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif incomingCallPendingIntent is null
Android.Net.Sip.SipExceptionif 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 SipManager.MakeAudioCall(SipProfile, Android.Net.Sip.SipProfile, Android.Net.Sip.SipProfile, Android.Net.Sip.SipProfile). 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 SipManager.GetCallId(Android.Content.Intent) and SipManager.GetOfferSessionDescription(Android.Content.Intent) to retrieve those extras.

[Android Documentation]

Requirements

Namespace: Android.Net.Sip
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9