public interface CallEventsHandler
Modifier and Type | Method and Description |
---|---|
default void |
onCallDTMFReceived(Call call,
DTMFCodes dtmf)
Notify upon reception of DTMF from the remote peer
The event notify upon DTMF (Dual-Tone Multi-Frequency) reception from the remote peer
|
default void |
onCallDTMFResult(Call call,
Result result)
Notify upon DTMF call result
The event notify upon DTMF (Dual-Tone Multi-Frequency) result for the call is returned
|
default void |
onCallExtendedError(Call call,
ExtendedError error)
Notify upon call extended error occurs
Event fired when extended error in call occurs, providing detailed information for the error in the
ExtendedError object.
|
default void |
onCallNetworkQualityLevel(Call call,
int callChannel,
NetworkQualityLevel qualityLevel)
Notify upon network quality level change
The event notify when network quality level changes
|
default void |
onCallNetworkStatistics(Call call,
NetworkStatistics networkStatistics)
Event for network statistics update
The event provides call's network statistic information
|
default void |
onCallSecurityLevelChanged(Call call,
CallMediaChannel callChannel,
CallSecurityLevel qualityLevel)
Notify upon network quality level change
The event notify when network quality level changes
|
default void |
onCallSipHeaderFields(Call call,
java.util.List<HeaderField> headerFields)
SIP header dump for a SIP call
Dumps the header of a SIP message from a SIP call.
|
default void |
onCallStatusChanged(Call call,
CallStatus status)
Notify upon Call's status change
Notify upon call's related status information is changed
|
default void |
onCallTransferFailure(Call call,
ExtendedError error)
Failed call transfer event
The event notify that the call transfer failed, it also provides the reason for the failure
|
default void |
onCallTransferStarted(Call call,
java.lang.String name,
java.lang.String number,
java.lang.String uri)
Notify that call transfer is initiated
The event notify that the call transfer is initiated.The number to transfer to (and display name and optionally
an URI, depending on the protocol) is given for informational purposes (or to help make the decision to accept
or reject the transfer).
|
default void |
onCallTransferSucceeded(Call call)
Succesuful call transfer event
The event notify upon the call transfer has succeeded
|
default void |
onCallZrtpFailed(Call call,
ExtendedError error)
ZRTP negotiation failed for a call
The ZRTP negotiation for a call has failed.
|
default void |
onCallZrtpSecondaryError(Call call,
int callChannel,
ExtendedError error)
Secondary stream failed to negotiate ZRTP
Multistream ZRTP negotiation has failed for a secondary stream in a call.
|
default void |
onCallZrtpSuccess(Call call,
java.lang.String zidHex,
int knownPeer,
int cacheMismatch,
int peerKnowsUs,
ZRTPSASEncoding sasEncoding,
java.lang.String sas,
ZRTPHashAlgorithm hash,
ZRTPCipherAlgorithm cipher,
ZRTPAuthTag authTag,
ZRTPKeyAgreement keyAgreement)
ZRTP negotiation succeeded for a call
The ZRTP negotiation for a call has succeeded.
|
default void |
onVideoCameraChanged(Call call)
Video camera changed
The Video cameras changed.
|
default void |
onVideoFormatSelected(Call call,
OriginType dir,
int width,
int height,
float fps)
Video format selected
|
default void |
onVideoOffered(Call call)
Video offered for audio calls
The remote party has offered us video during a normal (audio) call.
|
default void |
onVideoStarted(Call call,
OriginType origin)
Video started
The video has started.The call is ready to
encode and send frames over the network.
|
default void |
onVideoStopped(Call call,
OriginType origin)
Video stopped
The Video has stopped.
|
default void onCallStatusChanged(Call call, CallStatus status)
call
- The call which status is changedstatus
- What status the account is changed toCallStatus
default void onCallExtendedError(Call call, ExtendedError error)
call
- The call that received the errorerror
- The error object that provides full information regarding the errorExtendedError
default void onCallNetworkStatistics(Call call, NetworkStatistics networkStatistics)
call
- The call which network statics is providednetworkStatistics
- The network statistics object with full statistic informationNetworkStatistics
default void onCallNetworkQualityLevel(Call call, int callChannel, NetworkQualityLevel qualityLevel)
call
- The call which network quality level is changedcallChannel
- The call's channelqualityLevel
- The quality level valueNetworkQualityLevelType
default void onCallSecurityLevelChanged(Call call, CallMediaChannel callChannel, CallSecurityLevel qualityLevel)
call
- The call which network quality level is changedcallChannel
- The call's channelqualityLevel
- The quality level valueCall
default void onCallDTMFResult(Call call, Result result)
call
- The call for which DTMF response is returnedresult
- The resultCall
default void onCallDTMFReceived(Call call, DTMFCodes dtmf)
call
- The call for which received a DTMFdtmf
- The received DTMFDTMFCodes
default void onCallTransferSucceeded(Call call)
call
- The call which was transferedonCallTransferStarted onCallTransferSucceeded
default void onCallTransferFailure(Call call, ExtendedError error)
call
- The call which was transfered failederror
- The reason why it failedonCallTransferStarted onCallTransferSucceeded
default void onCallTransferStarted(Call call, java.lang.String name, java.lang.String number, java.lang.String uri)
call
- The call on which the transfer request camename
- The name of the transfer targetnumber
- The number of the transfer targeturi
- Optionally, protocol dependant URI of the transfer targetonCallTransferStarted onCallTransferSucceeded
default void onCallZrtpFailed(Call call, ExtendedError error)
call
- The call on which ZRTP failederror
- Information on why the ZRTP failedExtendedError
default void onCallZrtpSuccess(Call call, java.lang.String zidHex, int knownPeer, int cacheMismatch, int peerKnowsUs, ZRTPSASEncoding sasEncoding, java.lang.String sas, ZRTPHashAlgorithm hash, ZRTPCipherAlgorithm cipher, ZRTPAuthTag authTag, ZRTPKeyAgreement keyAgreement)
call
- The callzidHex
- The peer's ZRTP ID (ZID) in HEX representationknownPeer
- 1 if the peer is known, 0 if we see them for the first timecacheMismatch
- 1 if the peer needs to be confirmed, 0 if the cache agreespeerKnowsUs
- 1 if the peer knows us, 0 if they see us for the first time or
if they have encountered a cache mismatch of their ownsasEncoding
- The SAS encodingsas
- The Short Authentication String to be confirmed if needed. The
string is in human readable form in the encoding @p sasEncodinghash
- The chosen Hash Algorithmcipher
- The chosen Cipher Algorithm (used in SRTP)authTag
- The chosen Authentication Tag type (used in SRTP)keyAgreement
- The key agreement method used for the negotiationZRTPSASEncoding ZRTPHashAlgorithm ZRTPCipherAlgorithm ZRTPAuthTag ZRTPKeyAgreement
default void onCallZrtpSecondaryError(Call call, int callChannel, ExtendedError error)
call
- The call Id on which the secondary ZRTP negotiation failedcallChannel
- The type of the secondary RTP stream (usually video)error
- Detailed error information about the failureExtendedError
default void onCallSipHeaderFields(Call call, java.util.List<HeaderField> headerFields)
call
- The callheaderFields
- The header fields arrayHeaderFields
default void onVideoOffered(Call call)
call
- The callCall
default void onVideoStarted(Call call, OriginType origin)
call
- The video callorigin
- The call initiator type (incoming, outgoing)OriginType
default void onVideoStopped(Call call, OriginType origin)
call
- The video callorigin
- The call initiator type (incoming, outgoing)OriginType
default void onVideoCameraChanged(Call call)
call
- The video callCall
default void onVideoFormatSelected(Call call, OriginType dir, int width, int height, float fps)
call
- The call for which the video format was selecteddir
- The directionwidth
- Width in pixelsheight
- Height in pixelsfps
- Frames per secondsOriginType