public class SipCallSession extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
SipCallSession.InvState
Describe the control state of a call
Pjsip documentation |
static class |
SipCallSession.MediaState
Describe the media state of the call
Pjsip documentation |
static class |
SipCallSession.StatusCode
Status code of the sip call dialog Actually just shortcuts to SIP codes
Pjsip documentation |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SipCallSession> |
CREATOR
Parcelable creator.
|
static int |
INVALID_CALL_ID
Id of an invalid or not existant call
|
static String |
OPT_CALL_EXTRA_HEADERS
Option key to add custom headers (with X- prefix).
|
static String |
OPT_CALL_VIDEO
Option key to flag video use for the call.
|
int |
primaryKey
Primary key for the parcelable object
|
static int |
TRANSPORT_SECURE_FULL
The call signaling is supposed to be secured end to end.
|
static int |
TRANSPORT_SECURE_NONE
The call signaling is not secure
|
static int |
TRANSPORT_SECURE_TO_SERVER
The call signaling is secure until it arrives on server.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
SipCallSession()
Constructor for a sip call session state object
It will contains default values for all flags This class as no setter/getter for members flags It's aim is to allow to serialize/deserialize easily the state of a sip call, |
SipCallSession(SipCallSession callInfo)
Constructor by copy
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRecord()
Get the capability to record the call to a file.
|
int |
describeContents() |
boolean |
equals(Object o)
A sip call session is equal to another if both means the same callId
|
long |
getAccId()
Get the identifier of the account corresponding to this call
This identifier is the one you have in SipProfile.id It may return SipProfile.INVALID_ID if no account detected for
this call. |
int |
getCallId()
Get the call id of this call info
|
long |
getCallStart()
Get the start time of the call.
|
int |
getCallState()
Get the call state of this call info
|
int |
getConfPort()
Get the sounds conference board port
Pjsip documentation |
long |
getConnectStart()
Get the start time of the connection of the call
|
boolean |
getHasZrtp() |
int |
getLastStatusCode()
Get the latest status code of the sip dialog corresponding to this call
call
|
String |
getLastStatusComment()
Get the last status comment of the sip dialog corresponding to this call
|
String |
getMediaSecureInfo()
Get the information about the media security of this call
|
int |
getMediaStatus() |
String |
getRemoteContact()
Get the remote Contact for this call info
|
int |
getTransportSecureLevel()
Get the secure level of the signaling of the call.
|
boolean |
isActive()
Check if the call state indicates that it is an active call in
progress.
|
boolean |
isAfterEnded()
Check if the specific call info indicates that it is a call that has been ended
In other worlds if the call is in state, disconnected, invalid or null |
boolean |
isBeforeConfirmed()
Check if the specific call info indicates that it is a call that has not yet been confirmed by both ends.
|
boolean |
isIncoming()
Get the call way
|
boolean |
isLocalHeld()
Get the information about local held state of this call
|
boolean |
isMediaSecure()
Get the secure level of the media of the call
|
boolean |
isOngoing()
Chef if the call state indicates that it's an ongoing call.
|
boolean |
isRecording()
Get the current call recording status for this call.
|
boolean |
isRemoteHeld()
Get the information about remote held state of this call
|
boolean |
isZrtpSASVerified() |
boolean |
mediaHasVideo()
Get whether the call has a video media stream connected
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final String OPT_CALL_VIDEO
Boolean
,
Constant Field Valuespublic static final String OPT_CALL_EXTRA_HEADERS
Bundle
,
Constant Field Valuespublic static int TRANSPORT_SECURE_NONE
public static int TRANSPORT_SECURE_TO_SERVER
public static int TRANSPORT_SECURE_FULL
public static final int INVALID_CALL_ID
public int primaryKey
public static final Parcelable.Creator<SipCallSession> CREATOR
public SipCallSession()
public SipCallSession(SipCallSession callInfo)
callInfo
- public int describeContents()
describeContents
in interface Parcelable
Parcelable.describeContents()
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Parcelable.writeToParcel(Parcel, int)
public boolean equals(Object o)
public int getCallId()
public int getCallState()
SipCallSession.InvState
public int getMediaStatus()
public String getRemoteContact()
public boolean isIncoming()
public long getConnectStart()
SystemClock.elapsedRealtime()
public boolean isActive()
public boolean isOngoing()
public int getConfPort()
public long getAccId()
SipProfile.id
SipProfile.INVALID_ID
if no account detected for
this call. Example, case of peer to peer callSipProfile.id
of the account use for this callpublic int getTransportSecureLevel()
TRANSPORT_SECURE_NONE
, TRANSPORT_SECURE_TO_SERVER
, TRANSPORT_SECURE_FULL
public boolean isMediaSecure()
public String getMediaSecureInfo()
public boolean isLocalHeld()
public boolean isRemoteHeld()
public boolean isBeforeConfirmed()
public boolean isAfterEnded()
public int getLastStatusCode()
SipCallSession.StatusCode
public String getLastStatusComment()
public boolean mediaHasVideo()
public boolean isRecording()
public boolean canRecord()
public boolean isZrtpSASVerified()
public boolean getHasZrtp()
public long getCallStart()