Skip to main content

@dialstack/sdk / index / IncomingCallEvent

Interface: IncomingCallEvent

Defined in: sdk/src/types/callbacks.ts:61

Event fired when a call starts ringing

Properties

from_name

TypeScript
from_name: string | null;

Defined in: sdk/src/types/callbacks.ts:65

Caller ID name (if available)


from_number

TypeScript
from_number: string;

Defined in: sdk/src/types/callbacks.ts:63

Caller phone number


timestamp

TypeScript
timestamp: Date;

Defined in: sdk/src/types/callbacks.ts:79

When the call started ringing


to_number

TypeScript
to_number: string;

Defined in: sdk/src/types/callbacks.ts:67

Called phone number (DID)


user?

TypeScript
optional user?: string;

Defined in: sdk/src/types/callbacks.ts:73

User the call is routed to. Set only when the DID targets a single user directly; omitted for ring groups, voice apps, dial plans, and other shared destinations where no single user is known at ring time.


user_id?

TypeScript
optional user_id?: string;

Defined in: sdk/src/types/callbacks.ts:77

Deprecated

Use user. Retained for backwards compatibility.