Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

IncomingCallEvent

Adnan Arnautović edited this page Jan 26, 2023 · 1 revision

incomingCall()

Description

Getter for the incomingCall field.

Arguments

  • none

Returns

  • Call - Value of the incomingCall field that represents received incoming call.

Example

let infobipRTC = new InfobipRTC('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-call', function (incomingCallEvent) {
    incomingCallEvent.incomingCall.accept();
});



customData()

Description

Getter for the customData field.

Arguments

  • none

Returns

  • any - Value of the customData field that represents received additional information.

Example

let infobipRTC = new InfobipRTC('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-call', function (incomingCallEvent) {
    console.log(`Incoming call custom data: ${JSON.stringify(incomingCallEvent.customData)}`);
});
Clone this wiki locally