Skip to content

CallEventListener

Ajša Terko edited this page Feb 22, 2023 · 3 revisions



onRinging(callRingingEvent)

Description

Method that is triggered when a call is ringing

Arguments

  • callRingingEvent: CallRingingEvent - Event instance which is used when a call is ringing. Does not contain any additional data.

Returns

  • N/A



onEarlyMedia(callEarlyMediaEvent)

Description

Method that is triggered when there is media to be played before establishing a call.

Arguments

  • callEarlyMediaEvent: CallEarlyMediaEvent - Event instance which is used when there is media to be played before establishing a call. Does not contain any additional data.

Returns

  • N/A



onEstablished(callEstablishedEvent)

Description

Method that is triggered when a call is established.

Arguments

  • callEstablishedEvent: CallEstablishedEvent - Event instance relevant for establishing a call. Does not contain any additional data.

Returns

  • N/A



onHangup(callHangupEvent)

Description

Method that is triggered when a call has been hung up. This covers both normal hang up and when a call has been hung up because of an error.

Arguments

  • callHangupEvent: CallHangupEvent - Event instance which contains data relevant for the hangup. Contains data about the hangup error code, which informs if the call ended without an error or with a certain error (depending on the code).

Returns

  • N/A



onError(errorEvent)

Description

Method that is triggered when a call has encountered an error which does not hang up the call.

Arguments

  • errorEvent: ErrorEvent - Event instance which contains data relevant to the error.

Returns

  • N/A

Tutorials

Migration guides

Reference documentation

Clone this wiki locally