Skip to main content

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

Interface: SoftphoneContextValue

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

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:62

Inherited from​

TypeScript
SoftphoneContextBase.actions

activeCall​

TypeScript
activeCall: Call | null;

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

Inherited from​

TypeScript
SoftphoneContextBase.activeCall

answerCall​

TypeScript
answerCall: (call) => void;

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

Parameters​

call​

Call

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.answerCall

calls​

TypeScript
calls: Call[];

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

Inherited from​

TypeScript
SoftphoneContextBase.calls

cancelAttendedTransfer​

TypeScript
cancelAttendedTransfer: () => void;

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

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.cancelAttendedTransfer

canMerge​

TypeScript
canMerge: boolean;

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

Whether merging is possible: two connected calls, no transfer, WebAudio present.

Inherited from​

TypeScript
SoftphoneContextBase.canMerge

clearError​

TypeScript
clearError: () => void;

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

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.clearError

completeAttendedTransfer​

TypeScript
completeAttendedTransfer: () => void;

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

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.completeAttendedTransfer

conferenceAudio​

TypeScript
conferenceAudio: MediaStream | null;

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

While merged, every remote party mixed — what the local user hears.

Inherited from​

TypeScript
SoftphoneContextBase.conferenceAudio

connection​

TypeScript
connection: SoftphoneConnectionState;

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

Inherited from​

TypeScript
SoftphoneContextBase.connection

consultCall​

TypeScript
consultCall: Call | null;

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

Inherited from​

TypeScript
SoftphoneContextBase.consultCall

displayNumber​

TypeScript
displayNumber: (value) => string;

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

Parameters​

value​

string

Returns​

string

Inherited from​

TypeScript
SoftphoneContextBase.displayNumber

duration​

TypeScript
duration: string;

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

Inherited from​

TypeScript
SoftphoneContextBase.duration

emergency​

TypeScript
emergency: UseEmergencyBinding;

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

Inherited from​

TypeScript
SoftphoneContextBase.emergency

emergencyManagedByHost​

TypeScript
emergencyManagedByHost: boolean;

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

Inherited from​

TypeScript
SoftphoneContextBase.emergencyManagedByHost

hangupConference​

TypeScript
hangupConference: () => void;

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

Hang up every leg of the conference (the merged UI shows one Hang up).

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.hangupConference

heldCalls​

TypeScript
heldCalls: Call[];

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

Inherited from​

TypeScript
SoftphoneContextBase.heldCalls

holdConference​

TypeScript
holdConference: (held) => void;

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

Hold or resume every leg of the conference together.

Parameters​

held​

boolean

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.holdConference

incomingCalls​

TypeScript
incomingCalls: Call[];

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

Inherited from​

TypeScript
SoftphoneContextBase.incomingCalls

incomingRinging​

TypeScript
incomingRinging: boolean;

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

True while an unanswered inbound call should be audibly ringing.

Inherited from​

TypeScript
SoftphoneContextBase.incomingRinging

isMerged​

TypeScript
isMerged: boolean;

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

Inherited from​

TypeScript
SoftphoneContextBase.isMerged

lastError​

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

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

Inherited from​

TypeScript
SoftphoneContextBase.lastError

mergeCalls​

TypeScript
mergeCalls: () => void;

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

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.mergeCalls

mergedCalls​

TypeScript
mergedCalls: Call[];

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

The calls bridged into a local three-way conference (empty when not merged).

Inherited from​

TypeScript
SoftphoneContextBase.mergedCalls

overlays​

TypeScript
overlays: UseCallOverlays;

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

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:98

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:77

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:119

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


splitMerge​

TypeScript
splitMerge: () => void;

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

Returns​

void

Inherited from​

TypeScript
SoftphoneContextBase.splitMerge

startAttendedTransfer​

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

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

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:61

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:95

Parameters​

key​

| "split" | "title" | "hangUp" | "transfer" | "cancel" | "call" | "answer" | "done" | "connecting" | "disconnected" | "decline" | "reconnecting" | "mute" | "unmute" | "destinationPlaceholder" | "backspace" | "connectionError" | "callError" | "micPermissionError" | "dismiss" | "unknownCaller" | "incomingCall" | "hold" | "resume" | "keypad" | "transferPlaceholder" | "transferSend" | "transferNow" | "transferConsult" | "transferComplete" | "transferConsulting" | "transferOriginalOnHold" | "addCall" | "addCallPlaceholder" | "addCallSend" | "merge" | "conferenceLabel" | "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:73

Inherited from​

TypeScript
SoftphoneContextBase.transferOriginal

webrtcPhone​

TypeScript
webrtcPhone:
| DialStackPhone
| null;

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

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