public interface Call
Core. Call.State.StreamsRunning. However, if the core is locally hosting aConference, you may have some or all the calls in the conference inCall.State.StreamsRunning as well as an additional active call outside ofCall.State.StreamsRunning if the local participant of theConference is not part of it.Call.State of the call using getState(), it's currentCallParams with getCurrentParams() and the latest statistics bygetAudioStats() or getVideoStats(). | Modifier and Type | Interface | Description |
|---|---|---|
static class |
Call.Dir |
|
static class |
Call.State |
|
static class |
Call.Status |
| Modifier and Type | Method | Description |
|---|---|---|
int |
accept() |
Accept an incoming call.
|
int |
acceptEarlyMedia() |
Accept an early media session for an incoming call.
|
int |
acceptEarlyMediaWithParams(CallParams params) |
When receiving an incoming, accept to start a media session as early-media.
|
int |
acceptUpdate(CallParams params) |
Accept call modifications initiated by other end.
|
int |
acceptWithParams(CallParams params) |
Accept an incoming call, with parameters.
|
void |
addListener(CallListener listener) |
|
boolean |
askedToAutoanswer() |
Tell whether a call has been asked to autoanswer.
|
void |
cancelDtmfs() |
Stop current DTMF sequence sending.
|
void |
confirmGoClear() |
Method to be called after the user confirm that he/she is notifed of the on
going Go Clear procedure. |
java.lang.Object |
createNativeVideoWindowId() |
Create a native video window id where the video is to be displayed.
|
int |
decline(Reason reason) |
Decline a pending incoming call, with a reason.
|
int |
declineWithErrorInfo(ErrorInfo ei) |
Decline a pending incoming call, with a
ErrorInfo object. |
int |
deferUpdate() |
When receiving a #LinphoneCallUpdatedByRemote state notification, prevent
Core from performing an automatic answer. |
CallStats |
getAudioStats() |
Returns a copy of the call statistics for the audio stream.
|
java.lang.String |
getAuthenticationToken() |
Returns the ZRTP authentication token to verify.
|
boolean |
getAuthenticationTokenVerified() |
Returns whether ZRTP authentication token is verified.
|
float |
getAverageQuality() |
Returns call quality averaged over all the duration of the call.
|
CallLog |
getCallLog() |
Gets the call log associated to this call.
|
ChatRoom |
getChatRoom() |
Create a new chat room for real time messaging from a call if not already
existing, else return existing one. |
Conference |
getConference() |
Return the associated conference object.
|
Core |
getCore() |
Get the core that has created the specified call.
|
CallParams |
getCurrentParams() |
Returns current parameters associated to the call.
|
float |
getCurrentQuality() |
Obtain real-time quality rating of the call.
|
Call.Dir |
getDir() |
Returns direction of the call (incoming or outgoing).
|
Address |
getDiversionAddress() |
Returns the diversion address associated to this call.
|
int |
getDuration() |
Returns call's duration in seconds.
|
ErrorInfo |
getErrorInfo() |
Returns full details about call errors or termination reasons.
|
AudioDevice |
getInputAudioDevice() |
Gets the current input device for this call.
|
boolean |
getMicrophoneMuted() |
Get microphone muted state.
|
float |
getMicrophoneVolumeGain() |
Get microphone volume gain.
|
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
java.lang.Object |
getNativeVideoWindowId() |
Get the native window handle of the video window, casted as an unsigned long.
|
AudioDevice |
getOutputAudioDevice() |
Gets the current output device for this call.
|
CallParams |
getParams() |
Returns local parameters associated with the call.
|
Player |
getPlayer() |
Gets a player associated with the call to play a local file and stream it to
the remote peer. |
float |
getPlayVolume() |
Get the mesured playback volume level (received from remote) in dbm0.
|
Reason |
getReason() |
Returns the reason for a call termination (either error or normal termination)
|
float |
getRecordVolume() |
Get the mesured record volume level (sent to remote) in dbm0.
|
java.lang.String |
getReferTo() |
Gets the refer-to uri (if the call was transfered).
|
Address |
getRemoteAddress() |
Returns the remote address associated to this call.
|
java.lang.String |
getRemoteAddressAsString() |
Deprecated.
06/07/2020 use
getRemoteAddress() instead. |
java.lang.String |
getRemoteContact() |
Returns the far end's sip contact as a string, if available.
|
CallParams |
getRemoteParams() |
Returns call parameters proposed by remote.
|
java.lang.String |
getRemoteUserAgent() |
Returns the far end's user agent description string, if available.
|
Call |
getReplacedCall() |
Returns the call object this call is replacing, if any.
|
Address |
getRequestAddress() |
The address to which the call has been sent, taken directly from the SIP URI of
the INVITE. |
boolean |
getSpeakerMuted() |
Get speaker muted state.
|
float |
getSpeakerVolumeGain() |
Get speaker volume gain.
|
Call.State |
getState() |
Retrieves the call's current state.
|
CallStats |
getStats(StreamType type) |
Returns a copy of the call statistics for a particular stream type.
|
int |
getStreamCount() |
Returns the number of stream for the given call.
|
CallStats |
getTextStats() |
Returns a copy of the call statistics for the text stream.
|
Address |
getToAddress() |
Returns the to address with its headers associated to this call.
|
java.lang.String |
getToHeader(java.lang.String headerName) |
Deprecated.
27/10/2020. Use
CallParams.getCustomHeader(java.lang.String) on getRemoteParams()instead. |
Call |
getTransfererCall() |
Gets the transferer if this call was started automatically as a result of an
incoming transfer request. |
Call.State |
getTransferState() |
Returns the current transfer state, if a transfer has been initiated from this
call. |
Call |
getTransferTargetCall() |
When this call has received a transfer request, returns the new call that was
automatically created as a result of the transfer. |
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
VideoSourceDescriptor |
getVideoSource() |
Gets the video source of a call.
|
CallStats |
getVideoStats() |
Returns a copy of the call statistics for the video stream.
|
boolean |
hasTransferPending() |
Returns if this calls has received a transfer that has not been executed yet.
|
boolean |
isCameraEnabled() |
Returns if camera pictures are allowed to be sent to the remote party.
|
boolean |
isEchoCancellationEnabled() |
Returns if echo cancellation is enabled.
|
boolean |
isEchoLimiterEnabled() |
Returns if echo limiter is enabled.
|
boolean |
isRecording() |
Deprecated.
15/09/2021 Use
CallParams.isRecording() instead. |
boolean |
mediaInProgress() |
Indicates whether an operation is in progress at the media side.
|
void |
notifyRinging() |
Starts the process of replying 180 Ringing.
|
void |
oglRender() |
Calls generic OpenGL render for a given call.
|
int |
pause() |
Pauses the call.
|
int |
redirect(java.lang.String redirectUri) |
Deprecated.
27/10/2020. Use
redirectTo(org.linphone.core.Address) instead. |
int |
redirectTo(Address redirectAddress) |
Redirect the specified call to the given redirect Address.
|
void |
removeListener(CallListener listener) |
|
void |
requestNotifyNextVideoFrameDecoded() |
Request the callback passed to linphone_call_cbs_set_next_video_frame_decoded
to be called the next time the video decoder properly decodes a video frame. |
int |
resume() |
Resumes a call.
|
int |
sendDtmf(char dtmf) |
Send the specified dtmf.
|
int |
sendDtmfs(java.lang.String dtmfs) |
Send a list of dtmf.
|
int |
sendInfoMessage(InfoMessage info) |
Sends an info message through an established call.
|
void |
sendVfuRequest() |
Request remote side to send us a Video Fast Update.
|
void |
setAuthenticationTokenVerified(boolean verified) |
Set the result of ZRTP short code verification by user.
|
void |
setCameraEnabled(boolean enabled) |
Indicate whether camera input should be sent to remote end.
|
void |
setEchoCancellationEnabled(boolean enable) |
Enables or disable echo cancellation for this call.
|
void |
setEchoLimiterEnabled(boolean enable) |
Enables or disable echo limiter for this call.
|
void |
setInputAudioDevice(AudioDevice audioDevice) |
Sets the given
AudioDevice as input for this call only. |
void |
setMicrophoneMuted(boolean muted) |
Set microphone muted state.
|
void |
setMicrophoneVolumeGain(float volume) |
Set microphone volume gain.
|
void |
setNativeVideoWindowId(java.lang.Object windowId) |
Set the native video window id where the video is to be displayed.
|
void |
setOutputAudioDevice(AudioDevice audioDevice) |
Sets the given
AudioDevice as output for this call only. |
void |
setParams(CallParams params) |
Set call parameters - advanced and not recommended feature - use with caution.
|
void |
setSpeakerMuted(boolean muted) |
Set speaker muted state.
|
void |
setSpeakerVolumeGain(float volume) |
Set speaker volume gain.
|
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
void |
setVideoSource(VideoSourceDescriptor descriptor) |
Sets the video source of a call.
|
void |
startRecording() |
Starts call recording.
|
void |
stopRecording() |
Stops call recording.
|
int |
takePreviewSnapshot(java.lang.String filePath) |
Take a photo of currently captured video and write it into a jpeg file.
|
int |
takeVideoSnapshot(java.lang.String filePath) |
Take a photo of currently received video and write it into a jpeg file.
|
int |
terminate() |
Terminates a call.
|
int |
terminateWithErrorInfo(ErrorInfo ei) |
Terminates a call.
|
java.lang.String |
toString() |
|
int |
transfer(java.lang.String referTo) |
Deprecated.
27/10/2020. Use
transferTo(org.linphone.core.Address) instead. |
int |
transferTo(Address referTo) |
Performs a simple call transfer to the specified destination.
|
int |
transferToAnother(Call dest) |
Transfers a call to destination of another running call.
|
int |
update(CallParams params) |
Updates a running call according to supplied call parameters or parameters
changed in the LinphoneCore. |
void |
zoom(float zoomFactor,
float cx,
float cy) |
Perform a zoom of the video displayed during a call.
|
@Nullable CallStats getAudioStats()
CallStats object for the audio stream or null if it isn't@Nullable java.lang.String getAuthenticationToken()
boolean getAuthenticationTokenVerified()
setAuthenticationTokenVerified(boolean)void setAuthenticationTokenVerified(boolean verified)
verified - whether the ZRTP SAS is verified. float getAverageQuality()
getCurrentQuality() for more details about quality measurement. @NonNull CallLog getCallLog()
boolean isCameraEnabled()
void setCameraEnabled(boolean enabled)
enabled - wether or not to send local video stream. @Nullable ChatRoom getChatRoom()
ChatRoom where real time messaging can take place or null if@Nullable Conference getConference()
Conference or null if the call is not part of any@NonNull Core getCore()
Core object that has created the specified call. @NonNull CallParams getCurrentParams()
CallParams of this call. float getCurrentQuality()
Call.Dir getDir()
Call.Dir @Nullable Address getDiversionAddress()
Address or null. int getDuration()
boolean isEchoCancellationEnabled()
void setEchoCancellationEnabled(boolean enable)
enable - wether to enable echo cancellation or not. boolean isEchoLimiterEnabled()
void setEchoLimiterEnabled(boolean enable)
enable - wether to enable echo limiter or not. @NonNull ErrorInfo getErrorInfo()
ErrorInfo object holding the reason error. @Nullable AudioDevice getInputAudioDevice()
AudioDevice used by this call as input or null if there isvoid setInputAudioDevice(@Nullable
AudioDevice audioDevice)
audioDevice - The AudioDevice. null does nothing. @Deprecated boolean isRecording()
CallParams.isRecording() instead. boolean getMicrophoneMuted()
Core#enableMicvoid setMicrophoneMuted(boolean muted)
Core#enableMicmuted - The microphone muted state. float getMicrophoneVolumeGain()
void setMicrophoneVolumeGain(float volume)
volume - Percentage of the max supported gain. Valid values are in [ 0.0 :@Nullable java.lang.Object getNativeVideoWindowId()
void setNativeVideoWindowId(@Nullable
java.lang.Object windowId)
windowId - the native video window id. @Nullable AudioDevice getOutputAudioDevice()
AudioDevice used by this call as output or null if there isvoid setOutputAudioDevice(@Nullable
AudioDevice audioDevice)
audioDevice - The AudioDevice. null does nothing. @NonNull CallParams getParams()
Core.inviteAddressWithParams(org.linphone.core.Address, org.linphone.core.CallParams)acceptWithParams(org.linphone.core.CallParams), or some default parameters if no CallParamsvoid setParams(@NonNull
CallParams params)
Core.inviteAddressWithParams(org.linphone.core.Address, org.linphone.core.CallParams) or acceptWithParams(org.linphone.core.CallParams).CallParams only in #LinphoneCallOutgoingInitparams - the CallParams object float getPlayVolume()
@NonNull Player getPlayer()
Player object Reason getReason()
Reason of the call termination. float getRecordVolume()
@Nullable java.lang.String getReferTo()
@NonNull Address getRemoteAddress()
Address of the remote end of the call. @Deprecated @Nullable java.lang.String getRemoteAddressAsString()
getRemoteAddress() instead. @Nullable java.lang.String getRemoteContact()
@Nullable CallParams getRemoteParams()
CallParams suggested by the remote or null. @Nullable java.lang.String getRemoteUserAgent()
@Nullable Call getReplacedCall()
Call object this call is replacing or null. @NonNull Address getRequestAddress()
Address matching the URI of the INVITE request. boolean getSpeakerMuted()
void setSpeakerMuted(boolean muted)
muted - The speaker muted state. float getSpeakerVolumeGain()
void setSpeakerVolumeGain(float volume)
volume - Percentage of the max supported gain. Valid values are in [ 0.0 :Call.State getState()
Call.State of this call. int getStreamCount()
@Nullable CallStats getTextStats()
CallStats object for the text stream or null if it isn't@NonNull Address getToAddress()
Address matching the TO of the call. Call.State getTransferState()
Call.State. @Nullable Call getTransferTargetCall()
Call created. @Nullable Call getTransfererCall()
Call if the specified call was started@Nullable VideoSourceDescriptor getVideoSource()
VideoSourceDescriptor describing the video source that isvoid setVideoSource(@Nullable
VideoSourceDescriptor descriptor)
descriptor - The VideoSourceDescriptor describing the video source@Nullable CallStats getVideoStats()
CallStats object for the video stream or null if it isn'tint accept()
Call.Dir.Incoming event with the associated Call object.int acceptEarlyMedia()
acceptEarlyMediaWithParams(org.linphone.core.CallParams) with nullacceptEarlyMediaWithParams(org.linphone.core.CallParams) int acceptEarlyMediaWithParams(@Nullable
CallParams params)
accept() or acceptWithParams(org.linphone.core.CallParams). params - The call parameters to use (can be null). int acceptUpdate(@Nullable
CallParams params)
deferUpdate() so that it can have the time to prompt the user.getRemoteParams() can be used to get information about the callacceptUpdate(org.linphone.core.CallParams) can be doneCallParams#enableVideoparams - A CallParams object describing the call parameters toint acceptWithParams(@Nullable
CallParams params)
Call.Dir.Incoming event with the associated Call object.params - The specific parameters for this call, for example whether videoboolean askedToAutoanswer()
void cancelDtmfs()
sendDtmfs(java.lang.String). This function will bevoid confirmGoClear()
@Nullable java.lang.Object createNativeVideoWindowId()
int decline(Reason reason)
reason - The reason for rejecting the call: Reason.Declined orReason.Busy int declineWithErrorInfo(@Nullable
ErrorInfo ei)
ei - ErrorInfo containing more information on the call rejection. int deferUpdate()
Core from performing an automatic answer. Core is defined by theCore automatically answers theacceptUpdate(org.linphone.core.CallParams) to answer the reINVITE, with eventually videoCallParams argument.deferUpdate() was done outside a@Nullable CallStats getStats(StreamType type)
type - the StreamType CallStats object for the given stream or null if stream isn't@Deprecated
@Nullable
java.lang.String getToHeader(@NonNull
java.lang.String headerName)
CallParams.getCustomHeader(java.lang.String) on getRemoteParams()headerName - the name of the header to check. boolean hasTransferPending()
boolean mediaInProgress()
void notifyRinging()
Core#enableAutoSendRinging.void oglRender()
int pause()
Core.setPlayFile(java.lang.String), this file willresume(). resume() @Deprecated
int redirect(@NonNull
java.lang.String redirectUri)
redirectTo(org.linphone.core.Address) instead. redirectUri - The URI to redirect the call to int redirectTo(@NonNull
Address redirectAddress)
redirectAddress - The Address to redirect the call to void requestNotifyNextVideoFrameDecoded()
int resume()
pause() int sendDtmf(char dtmf)
dtmf - The dtmf name specified as a char, such as '0', '#' etc... int sendDtmfs(@NonNull
java.lang.String dtmfs)
dtmfs - A dtmf sequence such as '123#123123' int sendInfoMessage(@NonNull
InfoMessage info)
info - the InfoMessage to send void sendVfuRequest()
void startRecording()
CallParams.setRecordFile(java.lang.String). void stopRecording()
int takePreviewSnapshot(@NonNull
java.lang.String filePath)
filePath - a path where to write the jpeg content. int takeVideoSnapshot(@NonNull
java.lang.String filePath)
filePath - a path where to write the jpeg content. int terminate()
int terminateWithErrorInfo(@Nullable
ErrorInfo ei)
ei - ErrorInfo @Deprecated
int transfer(@NonNull
java.lang.String referTo)
transferTo(org.linphone.core.Address) instead. referTo - The destination the call is to be refered to. int transferTo(@NonNull
Address referTo)
referTo - The Address the call is to be refered to. int transferToAnother(@NonNull
Call dest)
dest - A running call whose remote person will receive the transfer int update(@Nullable
CallParams params)
CallParamsresume().params - The new call parameters to use (may be null). void zoom(float zoomFactor,
float cx,
float cy)
zoomFactor - a floating point number describing the zoom factor. A valuecx - a floating point number pointing the horizontal center of the zoom tocy - a floating point number pointing the vertical center of the zoom tovoid addListener(CallListener listener)
void removeListener(CallListener listener)
void setUserData(java.lang.Object data)
data - the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString in class java.lang.Object