@dialstack/sdk / react / UseCallActions
Interface: UseCallActions
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:40
Extends
CallActions
Properties
answer
answer: () => void;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:31
Returns
void
Inherited from
CallActions.answer
callActionsFor
callActionsFor: (call) => CallActions;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:55
Build the per-call action subset for a SPECIFIC call — used by the
incoming/held cards, which act on a call that isn't the foreground one. The
foreground actions above are exactly callActionsFor(activeCall).
Parameters
call
Call | null
Returns
CallActions
hangup
hangup: () => void;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:33
Returns
void
Inherited from
CallActions.hangup
reject
reject: () => void;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:32
Returns
void
Inherited from
CallActions.reject
sendDtmf
sendDtmf: (digit) => void;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:37
Send a DTMF digit (no-op when no call).
Parameters
digit
string
Returns
void
Inherited from
CallActions.sendDtmf
toggleHold
toggleHold: () => void;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:35
Returns
void
Inherited from
CallActions.toggleHold
toggleMute
toggleMute: () => void;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:34
Returns
void
Inherited from
CallActions.toggleMute
transfer
transfer: (destination) => boolean;
Defined in: sdk/src/react/softphone/hooks/useCallActions.ts:48
Blind-transfer the active call to destination. Returns true when the
transfer was initiated (so the UI can close its transfer overlay), false
on empty input or a synchronous failure routed to onError. true means
initiated, not confirmed — the core call is fire-and-forget, so the outcome
arrives later as the call ending ('transferred') or an onError.
Parameters
destination
string
Returns
boolean