Skip to content

IncomingCall

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



accept(options)

Description

Accepts the incoming call.

Arguments

  • options: CallOptions - Optional additional options to be used when accepting an incoming call.

Returns

  • N/A

Example

let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-webrtc-call', (incomingWebrtcCallEvent) => {
    incomingWebrtcCallEvent.incomingCall.accept(WebrtcCallOptions.builder().setVideo(true).build());
});



decline(options)

Description

Declines the incoming call.

Arguments

  • options: DeclineOptions - Optional additional option to decline an incoming call on all devices.

Returns

  • N/A

Example

let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-webrtc-call', (incomingWebrtcCallEvent) => {
    incomingWebrtcCallEvent.incomingCall.decline(DeclineOptions.builder().setDeclineOnAllDevices(true).build());
});

Tutorials

Migration guides

Reference documentation

Clone this wiki locally