hangup

View as MarkdownOpen in Claude

Add a hangup verb to the main section. Ends the current call.

Parameters

config
Record<string, unknown> | undefined

Optional configuration object for the hangup verb. Supported keys:

  • reason ('hangup' | 'busy' | 'decline') — The reason for hanging up the call.

Returns

this — The builder instance for method chaining.

Example

1import { SwmlBuilder } from '@signalwire/sdk';
2
3const builder = new SwmlBuilder();
4builder.answer();
5builder.hangup({ reason: 'hangup' });