-
Notifications
You must be signed in to change notification settings - Fork 2
IncomingCall
Lejla Solak edited this page Feb 10, 2025
·
4 revisions
Accepts an incoming call, which ends up in both parties receiving CallEstablishedEvent,
after accept is processed by Infobip WebRTC platform.
none
N/A
IncomingCallEventListener incomingCallEventListener = incomingWebrtcCallEvent -> {
IncomingWebrtcCall incomingWebrtcCall = incomingWebrtcCallEvent.getIncomingWebrtcCall();
incomingWebrtcCall.setEventListener(new DefaultWebrtcCallEventListener());
incomingWebrtcCall.accept();
};Declines the incoming call, which ends up in both parties receiving the CallHangupEvent, after
decline is processed by Infobip WebRTC platform.
none
N/A
IncomingCallEventListener incomingCallEventListener = incomingWebrtcCallEvent -> {
IncomingWebrtcCall incomingWebrtcCall = incomingWebrtcCallEvent.getIncomingWebrtcCall();
incomingWebrtcCall.setEventListener(new DefaultWebrtcCallEventListener());
incomingWebrtcCall.decline();
};Declines the incoming call, which ends up in both parties receiving the CallHangupEvent, after
decline is processed by Infobip WebRTC platform. DeclineOptions give control over declining the
call on all devices.
-
declineOptions:DeclineOptions- An optional setting that allows you to decline an incoming call on all devices.
N/A
IncomingCallEventListener incomingCallEventListener = incomingWebrtcCallEvent -> {
IncomingWebrtcCall incomingWebrtcCall = incomingWebrtcCallEvent.getIncomingWebrtcCall();
incomingWebrtcCall.setEventListener(new DefaultWebrtcCallEventListener());
DeclineOptions declineOptions = DeclineOptions.builder()
.setDeclineOnAllDevices(true)
.build();
incomingWebrtcCall.decline(declineOptions);
};