sendDigits

View as MarkdownOpen in Claude
1sendDigits(dtmf): Promise<void>

Sends DTMF tones on the call. Each character in the string is transmitted as a separate tone in order, with timing managed by the server.

Accepted characters: digits 09, *, #, and the w / W wait separators (the lowercase w inserts a short pause, the uppercase W a longer one). Any other character produces an error from the server.

Requires the sendDigit capability — inspect call.capabilities$ before exposing a dialpad in your UI.

Parameters

dtmf
stringRequired

The digit string to send (e.g. '1234#', '1w234'). Each character is transmitted as a separate tone.

Returns

Promise<void> — resolves once the server has accepted the full string for playback.

Examples

Dial an extension after connection

1await call.sendDigits('1234#');

Drive an IVR with pauses

1// '1' → wait → '2' → long wait → '#'
2await call.sendDigits('1w2W#');

Hook a dialpad button

1dialpad.addEventListener('press', async (digit) => {
2 await call.sendDigits(digit);
3});

See

  • capabilities$ to check whether digit-sending is permitted on this call.