***

title: hangup
slug: /reference/typescript/agents/function-result/hangup
description: End the call immediately.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[functionresult]: /docs/server-sdks/reference/typescript/agents/function-result

End the call immediately.

<Warning>
  This is a terminal action. Any actions chained **after** `hangup()` may not execute.
  Always place `hangup()` last in the chain.
</Warning>

## **Parameters**

None.

## **Returns**

[`FunctionResult`][functionresult] -- `this`, for chaining.

## **Example**

```typescript {4}
import { FunctionResult } from '@signalwire/sdk';

const result = new FunctionResult('Goodbye!')
  .hangup();
```