Skip to main content

@dialstack/sdk / react / SoftphoneContextValue

Interface: SoftphoneContextValue

Defined in: sdk/src/react/softphone/provider/SoftphoneProvider.tsx:92

The web softphone context: the shared base plus the web-only scope (the CSS class the .ds-* styles are nested under). Native adds locationProvider instead; components read only the fields their platform provides.

Extends

  • SoftphoneContextBase

Properties

actions

actions: UseCallActions;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:44

Inherited from

SoftphoneContextBase.actions

activeCall

activeCall: Call | null;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:39

Inherited from

SoftphoneContextBase.activeCall

answerCall

answerCall: (call) => void;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:42

Parameters

call

Call

Returns

void

Inherited from

SoftphoneContextBase.answerCall

calls

calls: Call[];

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:38

Inherited from

SoftphoneContextBase.calls

cancelAttendedTransfer

cancelAttendedTransfer: () => void;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:58

Returns

void

Inherited from

SoftphoneContextBase.cancelAttendedTransfer

clearError

clearError: () => void;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:63

Returns

void

Inherited from

SoftphoneContextBase.clearError

completeAttendedTransfer

completeAttendedTransfer: () => void;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:57

Returns

void

Inherited from

SoftphoneContextBase.completeAttendedTransfer

connection

connection: SoftphoneConnectionState;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:37

Inherited from

SoftphoneContextBase.connection

consultCall

consultCall: Call | null;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:54

Inherited from

SoftphoneContextBase.consultCall

displayNumber

displayNumber: (value) => string;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:65

Parameters

value

string

Returns

string

Inherited from

SoftphoneContextBase.displayNumber

duration

duration: string;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:53

Inherited from

SoftphoneContextBase.duration

emergency

emergency: UseEmergencyBinding;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:60

Inherited from

SoftphoneContextBase.emergency

emergencyManagedByHost

emergencyManagedByHost: boolean;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:61

Inherited from

SoftphoneContextBase.emergencyManagedByHost

heldCalls

heldCalls: Call[];

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:41

Inherited from

SoftphoneContextBase.heldCalls

incomingCalls

incomingCalls: Call[];

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:40

Inherited from

SoftphoneContextBase.incomingCalls

lastError

lastError:
| {
code: string;
message: string;
}
| null;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:62

Inherited from

SoftphoneContextBase.lastError

overlays

overlays: UseCallOverlays;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:52

Internal built-in-UI machinery: the mutually-exclusive keypad/transfer overlay flags the bundled OngoingCall renders. Not part of the public softphone API — a custom layout owns its own presentation state and ignores this. Kept on the shared context (rather than local to OngoingCall) only so web and React Native can't drift on when the overlays reset.

Inherited from

SoftphoneContextBase.overlays

palette

palette: SoftphonePalette;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:67

Resolved theme palette — computed on both platforms so mobile themes like web.

Inherited from

SoftphoneContextBase.palette

placeCall

placeCall: (destination) => Promise<void>;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:59

Parameters

destination

string

Returns

Promise<void>

Inherited from

SoftphoneContextBase.placeCall

scope

scope: string;

Defined in: sdk/src/react/softphone/provider/SoftphoneProvider.tsx:94

The scoped class name that wraps the softphone UI (for .ds-* styles).


startAttendedTransfer

startAttendedTransfer: (destination) => Promise<void>;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:56

Parameters

destination

string

Returns

Promise<void>

Inherited from

SoftphoneContextBase.startAttendedTransfer

switchToCall

switchToCall: (call) => void;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:43

Parameters

call

Call

Returns

void

Inherited from

SoftphoneContextBase.switchToCall

t

t: (key) => string;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:64

Parameters

key

| "hangUp" | "title" | "transfer" | "cancel" | "answer" | "done" | "decline" | "reconnecting" | "unmute" | "mute" | "disconnected" | "destinationPlaceholder" | "call" | "backspace" | "connecting" | "connectionError" | "callError" | "micPermissionError" | "dismiss" | "unknownCaller" | "incomingCall" | "hold" | "resume" | "keypad" | "transferPlaceholder" | "transferSend" | "transferNow" | "transferConsult" | "transferComplete" | "transferConsulting" | "transferOriginalOnHold" | "stateTrying" | "stateRinging" | "stateActive" | "stateHeld" | "stateEnded" | "switchToCall" | "heldCallsLabel" | "callWaiting" | "emergencyPrompt" | "emergencyHint" | "emergencyConfirm" | "emergencyNewLocation" | "emergencyUseLocation" | "emergencyLocating" | "emergencyNumber" | "emergencyStreet" | "emergencyUnit" | "emergencyCity" | "emergencyState" | "emergencyPostalCode" | "emergencySave" | "emergencySaving" | "emergencyBack"

Returns

string

Inherited from

SoftphoneContextBase.t

transferOriginal

transferOriginal: Call | null;

Defined in: sdk/src/react/softphone/provider/SoftphoneProviderBase.tsx:55

Inherited from

SoftphoneContextBase.transferOriginal