public interface Call
Modifier and Type | Interface and Description |
---|---|
static class |
Call.Dir |
static class |
Call.State |
static class |
Call.Status |
Modifier and Type | Method and Description |
---|---|
void |
accept()
Accept an incoming call.
|
void |
acceptEarlyMedia()
Accept an early media session for an incoming call.
|
void |
acceptEarlyMediaWithParams(CallParams params)
When receiving an incoming, accept to start a media session as early-media.
|
void |
acceptUpdate(CallParams params)
Accept call modifications initiated by other end.
|
void |
acceptWithParams(CallParams params)
Accept an incoming call, with parameters.
|
void |
addListener(CallListener listener) |
boolean |
askedToAutoanswer()
Tell whether a call has been asked to autoanswer.
|
boolean |
cameraEnabled()
Returns TRUE if camera pictures are allowed to be sent to the remote party.
|
void |
cancelDtmfs()
Stop current DTMF sequence sending.
|
void |
decline(Reason reason)
Decline a pending incoming call, with a reason.
|
int |
declineWithErrorInfo(ErrorInfo ei)
Decline a pending incoming call, with a #LinphoneErrorInfo object.
|
void |
deferUpdate()
When receiving a #LinphoneCallUpdatedByRemote state notification, prevent
#LinphoneCore from performing an automatic answer.
|
boolean |
echoCancellationEnabled()
Returns TRUE if echo cancellation is enabled.
|
boolean |
echoLimiterEnabled()
Returns TRUE if echo limiter is enabled.
|
void |
enableCamera(boolean enabled)
Indicate whether camera input should be sent to remote end.
|
void |
enableEchoCancellation(boolean val)
Enables or disable echo cancellation for this call.
|
void |
enableEchoLimiter(boolean val)
Enables or disable echo limiter for this call.
|
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 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.
|
boolean |
getMicrophoneMuted()
Get microphone muted state.
|
float |
getMicrophoneVolumeGain()
Get microphone volume gain.
|
void |
getNativeVideoWindowId()
Get the native window handle of the video window, casted as an unsigned long.
|
CallParams |
getParams()
Returns local parameters associated with the call.
|
Player |
getPlayer()
Get 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()
Returns the remote address associated to this call as a string.
|
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.
|
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)
Return a copy of the call statistics for a particular stream type.
|
int |
getStreamCount()
Returns the number of stream for the given call.
|
Address |
getToAddress()
Returns the to address with its headers associated to this call.
|
java.lang.String |
getToHeader(java.lang.String name)
Returns the value of the header name.
|
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
|
boolean |
hasTransferPending()
Returns true if this calls has received a transfer that has not been executed
yet.
|
boolean |
isRecording()
Returns whether or not the call is currently being recorded.
|
boolean |
mediaInProgress()
Indicates whether an operation is in progress at the media side.
|
void |
oglRender()
Call generic OpenGL render for a given call.
|
void |
pause()
Pauses the call.
|
void |
redirect(java.lang.String redirectUri)
Redirect the specified call to the given redirect URI.
|
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.
|
void |
resume()
Resumes a call.
|
void |
sendDtmf(char dtmf)
Send the specified dtmf.
|
void |
sendDtmfs(java.lang.String dtmfs)
Send a list of dtmf.
|
void |
sendInfoMessage(InfoMessage info)
Send a #LinphoneInfoMessage 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 |
setMicrophoneMuted(boolean muted)
Set microphone muted state.
|
void |
setMicrophoneVolumeGain(float volume)
Set microphone volume gain.
|
void |
setNativeVideoWindowId(java.lang.Object id)
Set the native video window id where the video is to be displayed.
|
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 |
startRecording()
Start call recording.
|
void |
stopRecording()
Stop call recording.
|
void |
takePreviewSnapshot(java.lang.String file)
Take a photo of currently captured video and write it into a jpeg file.
|
void |
takeVideoSnapshot(java.lang.String file)
Take a photo of currently received video and write it into a jpeg file.
|
void |
terminate()
Terminates a call.
|
void |
terminateWithErrorInfo(ErrorInfo ei)
Terminates a call.
|
void |
transfer(java.lang.String referTo)
Performs a simple call transfer to the specified destination.
|
void |
transferToAnother(Call dest)
Transfers a call to destination of another running call.
|
void |
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.
|
java.lang.String getAuthenticationToken()
boolean getAuthenticationTokenVerified()
void setAuthenticationTokenVerified(boolean verified)
float getAverageQuality()
CallLog getCallLog()
boolean cameraEnabled()
void enableCamera(boolean enabled)
ChatRoom getChatRoom()
Conference getConference()
Core getCore()
CallParams getCurrentParams()
float getCurrentQuality()
Call.Dir getDir()
Address getDiversionAddress()
int getDuration()
boolean echoCancellationEnabled()
void enableEchoCancellation(boolean val)
boolean echoLimiterEnabled()
void enableEchoLimiter(boolean val)
ErrorInfo getErrorInfo()
boolean isRecording()
boolean getMicrophoneMuted()
void setMicrophoneMuted(boolean muted)
float getMicrophoneVolumeGain()
void setMicrophoneVolumeGain(float volume)
void getNativeVideoWindowId()
void setNativeVideoWindowId(java.lang.Object id)
CallParams getParams()
void setParams(CallParams params)
float getPlayVolume()
Player getPlayer()
Reason getReason()
float getRecordVolume()
java.lang.String getReferTo()
Address getRemoteAddress()
java.lang.String getRemoteAddressAsString()
java.lang.String getRemoteContact()
CallParams getRemoteParams()
java.lang.String getRemoteUserAgent()
Call getReplacedCall()
boolean getSpeakerMuted()
void setSpeakerMuted(boolean muted)
float getSpeakerVolumeGain()
void setSpeakerVolumeGain(float volume)
Call.State getState()
int getStreamCount()
Address getToAddress()
Call.State getTransferState()
Call getTransferTargetCall()
Call getTransfererCall()
void accept()
void acceptEarlyMedia()
void acceptEarlyMediaWithParams(CallParams params)
void acceptUpdate(CallParams params)
void acceptWithParams(CallParams params)
boolean askedToAutoanswer()
void cancelDtmfs()
void decline(Reason reason)
int declineWithErrorInfo(ErrorInfo ei)
void deferUpdate()
CallStats getStats(StreamType type)
java.lang.String getToHeader(java.lang.String name)
boolean hasTransferPending()
boolean mediaInProgress()
void oglRender()
void pause()
void redirect(java.lang.String redirectUri)
void requestNotifyNextVideoFrameDecoded()
void resume()
void sendDtmf(char dtmf)
void sendDtmfs(java.lang.String dtmfs)
void sendInfoMessage(InfoMessage info)
void sendVfuRequest()
void startRecording()
void stopRecording()
void takePreviewSnapshot(java.lang.String file)
void takeVideoSnapshot(java.lang.String file)
void terminate()
void terminateWithErrorInfo(ErrorInfo ei)
void transfer(java.lang.String referTo)
void transferToAnother(Call dest)
void update(CallParams params)
void zoom(float zoomFactor, float cx, float cy)
void addListener(CallListener listener)
void removeListener(CallListener listener)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()