Skip to main content

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

Interface: SoftphoneContextValue

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

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

TypeScript
actions: UseCallActions;

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

Inherited from

TypeScript
SoftphoneContextBase.actions

activeCall

TypeScript
activeCall: Call | null;

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

Inherited from

TypeScript
SoftphoneContextBase.activeCall

answerCall

TypeScript
answerCall: (call) => void;

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

Parameters

call

Call

Returns

void

Inherited from

TypeScript
SoftphoneContextBase.answerCall

calls

TypeScript
calls: Call[];

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

Inherited from

TypeScript
SoftphoneContextBase.calls

cancelAttendedTransfer

TypeScript
cancelAttendedTransfer: () => void;

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

Returns

void

Inherited from

TypeScript
SoftphoneContextBase.cancelAttendedTransfer

clearError

TypeScript
clearError: () => void;

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

Returns

void

Inherited from

TypeScript
SoftphoneContextBase.clearError

completeAttendedTransfer

TypeScript
completeAttendedTransfer: () => void;

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

Returns

void

Inherited from

TypeScript
SoftphoneContextBase.completeAttendedTransfer

connection

TypeScript
connection: SoftphoneConnectionState;

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

Inherited from

TypeScript
SoftphoneContextBase.connection

consultCall

TypeScript
consultCall: Call | null;

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

Inherited from

TypeScript
SoftphoneContextBase.consultCall

displayNumber

TypeScript
displayNumber: (value) => string;

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

Parameters

value

string

Returns

string

Inherited from

TypeScript
SoftphoneContextBase.displayNumber

duration

TypeScript
duration: string;

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

Inherited from

TypeScript
SoftphoneContextBase.duration

emergency

TypeScript
emergency: UseEmergencyBinding;

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

Inherited from

TypeScript
SoftphoneContextBase.emergency

emergencyManagedByHost

TypeScript
emergencyManagedByHost: boolean;

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

Inherited from

TypeScript
SoftphoneContextBase.emergencyManagedByHost

heldCalls

TypeScript
heldCalls: Call[];

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

Inherited from

TypeScript
SoftphoneContextBase.heldCalls

incomingCalls

TypeScript
incomingCalls: Call[];

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

Inherited from

TypeScript
SoftphoneContextBase.incomingCalls

incomingRinging

TypeScript
incomingRinging: boolean;

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

True while an unanswered inbound call should be audibly ringing.

Inherited from

TypeScript
SoftphoneContextBase.incomingRinging

lastError

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

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

Inherited from

TypeScript
SoftphoneContextBase.lastError

overlays

TypeScript
overlays: UseCallOverlays;

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

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

TypeScript
SoftphoneContextBase.overlays

palette

TypeScript
palette: SoftphonePalette;

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

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

Inherited from

TypeScript
SoftphoneContextBase.palette

placeCall

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

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

Parameters

destination

string

Returns

Promise<void>

Inherited from

TypeScript
SoftphoneContextBase.placeCall

scope

TypeScript
scope: string;

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

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


startAttendedTransfer

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

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

Parameters

destination

string

Returns

Promise<void>

Inherited from

TypeScript
SoftphoneContextBase.startAttendedTransfer

switchToCall

TypeScript
switchToCall: (call) => void;

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

Parameters

call

Call

Returns

void

Inherited from

TypeScript
SoftphoneContextBase.switchToCall

t

TypeScript
t: (key) => string;

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

Parameters

key

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

Returns

string

Inherited from

TypeScript
SoftphoneContextBase.t

transferOriginal

TypeScript
transferOriginal: Call | null;

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

Inherited from

TypeScript
SoftphoneContextBase.transferOriginal

webrtcPhone

TypeScript
webrtcPhone:
| DialStackPhone
| null;

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

The live WebRTC phone, or null before the first one is constructed. For the phone-scoped settings that aren't per-call — audio device selection, which must work whether or not a call is up. Per-call actions belong on actions.

Inherited from

TypeScript
SoftphoneContextBase.webrtcPhone