public class Call
extends java.lang.Object
Constructor and Description |
---|
Call(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
Result |
acceptCall()
Accepts an incoming call
Accepts an incoming call and opens audio and video channels for communication.
|
Call |
acceptCallTransfer()
Accept a call transfer request
Accept a call transfer request and creates a new outgoing call to the transfer target.
|
Result |
acceptVideo(boolean accept)
Accepts an incoming offer for video
|
Result |
attendedTransfer(Call transferee)
Initiates an attended call transfer
Initiates an attended call transfer.
|
Result |
blindTransfer(java.lang.String transferee)
Initiates an unattended call transfer
Initiates an unattended transfer (also called blind transfer).
|
BrandingInfo |
branding() |
void |
branding(BrandingInfo value) |
java.lang.String |
calleeName()
Provides the Callee name
|
java.lang.String |
calleeNumber()
Provides the Callee number
|
long |
callHandle()
Gets call handle
|
AudioVideoCodecs |
codecInUse()
Provides the used codec
|
Result |
configureCallRecordFormat(AudioFileFormat format)
Configures a call recording's encoding format and its specific settings.
|
Result |
confirmZrtpSas(boolean confirmed)
Enables ZRTP
|
void |
dropAllEventListeners()
Drops all event listeners
|
void |
dropCallStatusListener(CallEventsHandler value)
Drops Call status listener
|
Result |
enableZrtp(boolean enabled)
Enables ZRTP
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
Result |
hangUp()
Hang up the call
|
boolean |
hasVideo(OriginType origin)
Gets if video is present
Gets if video is present, local or remote.
|
boolean |
held()
Gets the Hold state
|
void |
held(boolean value)
Sets the hold state
|
boolean |
isFirstClass() |
boolean |
muted()
Gets the Mute state of the local input device
Mutes/unmutes the local input device (microphone).
|
void |
muted(boolean value)
Sets the Mute state of the local input device
Mutes/unmutes the local input device (microphone).
|
Result |
notifyAccountOfOwnershipChange()
Notify upon Account ownership changes
|
Result |
offerVideo()
Offers Video
Offers video to the remote party during a normal (audio) call.
|
boolean |
onSpeaker()
Gets the speakers state
!!!NOTE!!! Only keeps track of the SPEAKER state.
|
void |
onSpeaker(boolean value)
Sets the speakers state
!!!NOTE!!! Only keeps track of the SPEAKER state.
|
Account |
owner()
Returns the account owner
|
java.lang.String |
recordFileName()
Gets the record file name
|
void |
recordFileName(java.lang.String value)
Sets the record file name
|
Result |
rejectCallTransfer()
Rejects a call transfer request
Rejects a call transfer request.For SIP, the call will continue as usual.
|
Result |
restartVideoCapture()
Restart Video capture
|
Result |
ringing()
Notifies the remote party that we are ringing (incoming calls)
Sends a ringing notification to the remote party for an incoming call.
|
Result |
sendDTMF(DTMFCodes dtmf)
Sends a DTMF signal over a call
Sends a DTMF signal over a call.
|
void |
sendVideoFrame(byte[] bytes,
int byteCount,
VideoFrameFormat type)
Send a video frame over the network
Send an arbitrary-format frame to the remote party
The function will copy the buffer into its internal structures and schedule
it for encoding and transmitting over the video call.
|
void |
setCallStatusListener(CallEventsHandler value)
Sets Call status listener
|
void |
setVideoRendererNotificationsListener(VideoRendererEventsHandler value) |
void |
startHandlingVoipPhoneCallEvents()
Start handling Call events
|
Result |
startRecording()
Start recording call
|
CallStatus |
status()
Provides the Call's status information
|
void |
stopHandlingVoipPhoneCallEvents()
Stops handling Call events
|
Result |
stopRecording()
Stop recording
|
VideoCallInfo |
videoCallInfo()
Gets Video call information
Gets if video is present, local or remote.
|
CameraSensorLocation |
videoGetCameraLocation()
Provides Camera location
Provides Camera location ( Front, Back, NA )
|
Result |
videoToggleCamera()
Toggles the camera
|
public Call(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public long callHandle()
public BrandingInfo branding()
public void branding(BrandingInfo value)
public CallStatus status()
CallStatus
public java.lang.String calleeNumber()
public java.lang.String calleeName()
public AudioVideoCodecs codecInUse()
AudioVideoCodecs
public boolean onSpeaker()
public void onSpeaker(boolean value)
value
- public boolean held()
public void held(boolean value)
value
- public boolean muted()
public void muted(boolean value)
value
- public VideoCallInfo videoCallInfo()
VideoCallInfo
public boolean isFirstClass()
public java.lang.String recordFileName()
public void recordFileName(java.lang.String value)
value
- The name of the record file to be usedpublic void setCallStatusListener(CallEventsHandler value)
value
- The call events handlerCallEventsHandler
public void dropCallStatusListener(CallEventsHandler value)
value
- The call events handler to dropCallEventsHandler
public void dropAllEventListeners()
public void setVideoRendererNotificationsListener(VideoRendererEventsHandler value)
public Result ringing()
Result
public Result acceptCall()
Result
public Call acceptCallTransfer()
Call
public Result rejectCallTransfer()
Result
public Result attendedTransfer(Call transferee)
transferee
- The call to which the current call to be transfered toResult
public Result blindTransfer(java.lang.String transferee)
transferee
- The name of the Peer to which the current call to be transfered toResult
public Result acceptVideo(boolean accept)
accept
- Flag indicating whether to accept or reject the offered videoResult
public Result offerVideo()
Result
public void sendVideoFrame(byte[] bytes, int byteCount, VideoFrameFormat type)
bytes
- The buffer that holds the bytesbyteCount
- The buffer size in number of bytestype
- The format of the frame we are sendingVideoFrameFormat
public Result videoToggleCamera()
Result
public CameraSensorLocation videoGetCameraLocation()
CameraSensorLocation
public Result restartVideoCapture()
Result
public boolean hasVideo(OriginType origin)
origin
- The side that we want to check if video is present (local or remote)OriginType
public void stopHandlingVoipPhoneCallEvents()
public void startHandlingVoipPhoneCallEvents()
public Result notifyAccountOfOwnershipChange()
Result
public Result sendDTMF(DTMFCodes dtmf)
dtmf
- The DTMF you want to sendResult DTMFCodes
public Result startRecording()
Result
public Result stopRecording()
Result
public Result enableZrtp(boolean enabled)
enabled
- Result
public Result confirmZrtpSas(boolean confirmed)
confirmed
- Result
public Result configureCallRecordFormat(AudioFileFormat format)
format
- The format in which the call recording to be storedAudioFileFormat