Skip to navigation

Put the call on hold. The caller hears hold music until the hold is released or the timeout expires.

Parameters

timeout
numberDefaults to 300

Maximum hold duration in seconds. Clamped to the range 0—900 (15 minutes max).

Returns

FunctionResult — this, for chaining.

Example

import { FunctionResult } from '@signalwire/sdk';
// Default 300-second hold
const result = new FunctionResult('Please hold.')
.hold();