android.net.sip
Class SipManager

java.lang.Object
  extended by android.net.sip.SipManager

public class SipManager
extends Object


Field Summary
static String EXTRA_CALL_ID
           
static String EXTRA_OFFER_SD
           
static int INCOMING_CALL_RESULT_CODE
           
 
Method Summary
 void close(String localProfileUri)
           
 SipSession createSipSession(SipProfile localProfile, SipSession.Listener listener)
           
static String getCallId(Intent incomingCallIntent)
           
static String getOfferSessionDescription(Intent incomingCallIntent)
           
 SipSession getSessionFor(Intent incomingCallIntent)
           
static boolean isApiSupported(Context context)
           
static boolean isIncomingCallIntent(Intent intent)
           
 boolean isOpened(String localProfileUri)
           
 boolean isRegistered(String localProfileUri)
           
static boolean isSipWifiOnly(Context context)
           
static boolean isVoipSupported(Context context)
           
 SipAudioCall makeAudioCall(SipProfile localProfile, SipProfile peerProfile, SipAudioCall.Listener listener, int timeout)
           
 SipAudioCall makeAudioCall(String localProfileUri, String peerProfileUri, SipAudioCall.Listener listener, int timeout)
           
static SipManager newInstance(Context context)
           
 void open(SipProfile localProfile)
           
 void open(SipProfile localProfile, PendingIntent incomingCallPendingIntent, SipRegistrationListener listener)
           
 void register(SipProfile localProfile, int expiryTime, SipRegistrationListener listener)
           
 void setRegistrationListener(String localProfileUri, SipRegistrationListener listener)
           
 SipAudioCall takeAudioCall(Intent incomingCallIntent, SipAudioCall.Listener listener)
           
 void unregister(SipProfile localProfile, SipRegistrationListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCOMING_CALL_RESULT_CODE

public static final int INCOMING_CALL_RESULT_CODE
See Also:
Constant Field Values

EXTRA_CALL_ID

public static final String EXTRA_CALL_ID
See Also:
Constant Field Values

EXTRA_OFFER_SD

public static final String EXTRA_OFFER_SD
See Also:
Constant Field Values
Method Detail

newInstance

public static SipManager newInstance(Context context)

isApiSupported

public static boolean isApiSupported(Context context)

isVoipSupported

public static boolean isVoipSupported(Context context)

isSipWifiOnly

public static boolean isSipWifiOnly(Context context)

open

public void open(SipProfile localProfile)
          throws SipException
Throws:
SipException

open

public void open(SipProfile localProfile,
                 PendingIntent incomingCallPendingIntent,
                 SipRegistrationListener listener)
          throws SipException
Throws:
SipException

setRegistrationListener

public void setRegistrationListener(String localProfileUri,
                                    SipRegistrationListener listener)
                             throws SipException
Throws:
SipException

close

public void close(String localProfileUri)
           throws SipException
Throws:
SipException

isOpened

public boolean isOpened(String localProfileUri)
                 throws SipException
Throws:
SipException

isRegistered

public boolean isRegistered(String localProfileUri)
                     throws SipException
Throws:
SipException

makeAudioCall

public SipAudioCall makeAudioCall(SipProfile localProfile,
                                  SipProfile peerProfile,
                                  SipAudioCall.Listener listener,
                                  int timeout)
                           throws SipException
Throws:
SipException

makeAudioCall

public SipAudioCall makeAudioCall(String localProfileUri,
                                  String peerProfileUri,
                                  SipAudioCall.Listener listener,
                                  int timeout)
                           throws SipException
Throws:
SipException

takeAudioCall

public SipAudioCall takeAudioCall(Intent incomingCallIntent,
                                  SipAudioCall.Listener listener)
                           throws SipException
Throws:
SipException

isIncomingCallIntent

public static boolean isIncomingCallIntent(Intent intent)

getCallId

public static String getCallId(Intent incomingCallIntent)

getOfferSessionDescription

public static String getOfferSessionDescription(Intent incomingCallIntent)

register

public void register(SipProfile localProfile,
                     int expiryTime,
                     SipRegistrationListener listener)
              throws SipException
Throws:
SipException

unregister

public void unregister(SipProfile localProfile,
                       SipRegistrationListener listener)
                throws SipException
Throws:
SipException

getSessionFor

public SipSession getSessionFor(Intent incomingCallIntent)
                         throws SipException
Throws:
SipException

createSipSession

public SipSession createSipSession(SipProfile localProfile,
                                   SipSession.Listener listener)
                            throws SipException
Throws:
SipException


Copyright © 2008-2012. All Rights Reserved.