Sdílet prostřednictvím


SipManager Class

Definition

Provides APIs for SIP tasks, such as initiating SIP connections, and provides access to related SIP services.

[Android.Runtime.Register("android/net/sip/SipManager", DoNotGenerateAcw=true)]
public class SipManager : Java.Lang.Object
[<Android.Runtime.Register("android/net/sip/SipManager", DoNotGenerateAcw=true)>]
type SipManager = class
    inherit Object
Inheritance
SipManager
Attributes

Remarks

Provides APIs for SIP tasks, such as initiating SIP connections, and provides access to related SIP services. This class is the starting point for any SIP actions. You can acquire an instance of it with #newInstance newInstance().</p>

The APIs in this class allows you to:

<ul> <li>Create a SipSession to get ready for making calls or listen for incoming calls. See #createSipSession createSipSession() and #getSessionFor getSessionFor().</li> <li>Initiate and receive generic SIP calls or audio-only SIP calls. Generic SIP calls may be video, audio, or other, and are initiated with #open open(). Audio-only SIP calls should be handled with a SipAudioCall, which you can acquire with #makeAudioCall makeAudioCall() and #takeAudioCall takeAudioCall().</li> <li>Register and unregister with a SIP service provider, with #register register() and #unregister unregister().</li> <li>Verify session connectivity, with #isOpened isOpened() and #isRegistered isRegistered().</li> </ul> <p class="note"><strong>Note:</strong> Not all Android-powered devices support VOIP calls using SIP. You should always call android.net.sip.SipManager#isVoipSupported isVoipSupported() to verify that the device supports VOIP calling and android.net.sip.SipManager#isApiSupported isApiSupported() to verify that the device supports the SIP APIs. Your application must also request the android.Manifest.permission#INTERNET and android.Manifest.permission#USE_SIP permissions.</p>

<div class="special reference"> <h3>Developer Guides</h3>

For more information about using SIP, read the Session Initiation Protocol developer guide.

</div>

This member is deprecated. android.net.sip.SipManager and associated classes are no longer supported and should not be used as the basis of future VOIP apps.

Java documentation for android.net.sip.SipManager.

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.

Constructors

SipManager(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

ExtraCallId

Key to retrieve the call ID from an incoming call intent.

ExtraOfferSd

Key to retrieve the offered session description from an incoming call intent.

IncomingCallResultCode

The result code to be sent back with the incoming call PendingIntent.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close(String)

Closes the specified profile to not make/receive calls.

CreateSipSession(SipProfile, SipSession+Listener)

Creates a SipSession with the specified profile.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetCallId(Intent)

Gets the call ID from the specified incoming call broadcast intent.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetOfferSessionDescription(Intent)

Gets the offer session description from the specified incoming call broadcast intent.

GetSessionFor(Intent)

Gets the SipSession that handles the incoming call.

IsApiSupported(Context)

Returns true if the SIP API is supported by the system.

IsIncomingCallIntent(Intent)

Checks if the intent is an incoming call broadcast intent.

IsOpened(String)

Checks if the specified profile is opened in the SIP service for making and/or receiving calls.

IsRegistered(String)

Checks if the SIP service has successfully registered the profile to the SIP provider (specified in the profile) for receiving calls.

IsSipWifiOnly(Context)

Returns true if SIP is only available on WIFI.

IsVoipSupported(Context)

Returns true if the system supports SIP-based VOIP API.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
MakeAudioCall(SipProfile, SipProfile, SipAudioCall+Listener, Int32)

Creates a SipAudioCall to make a call.

MakeAudioCall(String, String, SipAudioCall+Listener, Int32)

Creates a SipAudioCall to make a call.

NewInstance(Context)

Creates a manager instance.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
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.

Register(SipProfile, Int32, ISipRegistrationListener)

Manually registers the profile to the corresponding SIP provider for receiving calls.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetRegistrationListener(String, ISipRegistrationListener)

Sets the listener to listen to registration events.

TakeAudioCall(Intent, SipAudioCall+Listener)

Creates a SipAudioCall to take an incoming call.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
Unregister(SipProfile, ISipRegistrationListener)

Manually unregisters the profile from the corresponding SIP provider for stop receiving further calls.

UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to