@dialstack/sdk / react / shouldRingIncoming
Function: shouldRingIncoming()
function shouldRingIncoming(calls): boolean;
Defined in: sdk/src/react/softphone/core/view-model.ts:33
Whether the softphone should be playing the incoming-call ring right now. Both the web and RN providers drive their ringtone off this one predicate so the "are we ringing?" rule has a single home and can't drift between platforms.
Accepts either the single foreground call (back-compat) or the full call list: ring while ANY inbound call is still alerting — a call-waiting interrupt during an active call rings just like an idle inbound one.
Parameters
calls
Call | Call[] | null
Returns
boolean