Skip to main content

@dialstack/sdk-dev / react/src/softphone / UseCallActions

Interface: UseCallActions

Defined in: sdk/react/src/react/softphone/hooks/useCallActions.ts:40

Extends​

  • CallActions

Properties​

answer​

TypeScript
answer: () => void;

Defined in: sdk/react/src/react/softphone/hooks/useCallActions.ts:31

Returns​

void

Inherited from​

TypeScript
CallActions.answer

callActionsFor​

TypeScript
callActionsFor: (call) => CallActions;

Defined in: sdk/react/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​

TypeScript
hangup: () => void;

Defined in: sdk/react/src/react/softphone/hooks/useCallActions.ts:33

Returns​

void

Inherited from​

TypeScript
CallActions.hangup

reject​

TypeScript
reject: () => void;

Defined in: sdk/react/src/react/softphone/hooks/useCallActions.ts:32

Returns​

void

Inherited from​

TypeScript
CallActions.reject

sendDtmf​

TypeScript
sendDtmf: (digit) => void;

Defined in: sdk/react/src/react/softphone/hooks/useCallActions.ts:37

Send a DTMF digit (no-op when no call).

Parameters​

digit​

string

Returns​

void

Inherited from​

TypeScript
CallActions.sendDtmf

toggleHold​

TypeScript
toggleHold: () => void;

Defined in: sdk/react/src/react/softphone/hooks/useCallActions.ts:35

Returns​

void

Inherited from​

TypeScript
CallActions.toggleHold

toggleMute​

TypeScript
toggleMute: () => void;

Defined in: sdk/react/src/react/softphone/hooks/useCallActions.ts:34

Returns​

void

Inherited from​

TypeScript
CallActions.toggleMute

transfer​

TypeScript
transfer: (destination) => boolean;

Defined in: sdk/react/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