hangup

View as MarkdownOpen in Claude

End the call immediately.

This is a terminal action. Any actions chained after hangup() may not execute. Always place hangup() last in the chain.

Parameters

None.

Returns

FunctionResultthis, for chaining.

Example

import { FunctionResult } from '@signalwire/sdk';
const result = new FunctionResult('Goodbye!')
.hangup();