SipManager.Register(SipProfile, Int32, ISipRegistrationListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Manually registers the profile to the corresponding SIP provider for receiving calls.
[Android.Runtime.Register("register", "(Landroid/net/sip/SipProfile;ILandroid/net/sip/SipRegistrationListener;)V", "GetRegister_Landroid_net_sip_SipProfile_ILandroid_net_sip_SipRegistrationListener_Handler")]
public virtual void Register (Android.Net.Sip.SipProfile? localProfile, int expiryTime, Android.Net.Sip.ISipRegistrationListener? listener);
[<Android.Runtime.Register("register", "(Landroid/net/sip/SipProfile;ILandroid/net/sip/SipRegistrationListener;)V", "GetRegister_Landroid_net_sip_SipProfile_ILandroid_net_sip_SipRegistrationListener_Handler")>]
abstract member Register : Android.Net.Sip.SipProfile * int * Android.Net.Sip.ISipRegistrationListener -> unit
override this.Register : Android.Net.Sip.SipProfile * int * Android.Net.Sip.ISipRegistrationListener -> unit
Parameters
- localProfile
- SipProfile
the SIP profile to register with
- expiryTime
- Int32
registration expiration time (in seconds)
- listener
- ISipRegistrationListener
to listen to the registration events
- Attributes
Exceptions
if calling the SIP service results in an error
Remarks
Manually registers the profile to the corresponding SIP provider for receiving calls. #open(SipProfile, PendingIntent, SipRegistrationListener)
is still needed to be called at least once in order for the SIP service to notify the caller with the android.app.PendingIntent
when an incoming call is received.
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.