Skip to main content

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

Interface: DirectoryContact

Defined in: sdk/react/src/react/softphone/core/view-model.ts:351

One entry of the host's directory, offered when transferring or adding a call in place of typing the destination from memory.

Properties​

description?​

TypeScript
description?: string;

Defined in: sdk/react/src/react/softphone/core/view-model.ts:366

A second, smaller line under the label. Defaults to the destination.


destination​

TypeScript
destination: string;

Defined in: sdk/react/src/react/softphone/core/view-model.ts:364

What to dial: anything the number field accepts (a phone number, an extension or a feature code). Picking the entry uses it, cleaned the same way as a paste.


group?​

TypeScript
group?: string;

Defined in: sdk/react/src/react/softphone/core/view-model.ts:372

The heading the entry is listed under. Entries sharing a group are shown together, groups in order of first appearance; entries without one come first, under no heading.


id​

TypeScript
id: string;

Defined in: sdk/react/src/react/softphone/core/view-model.ts:356

Unique within the directory and stable across renders: the picked entry is matched on it, so a host may rebuild or refetch the array freely.


label​

TypeScript
label: string;

Defined in: sdk/react/src/react/softphone/core/view-model.ts:358

The entry's name in the list.


tags?​

TypeScript
tags?: readonly string[];

Defined in: sdk/react/src/react/softphone/core/view-model.ts:377

Short labels shown as chips beside the name (a role, a language, "On call"), and matched by the search like the other fields.