> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # hangup > End the call immediately. [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. ## **Parameters** None. ## **Returns** [`FunctionResult`][functionresult] -- `this`, for chaining. ## **Example** ```typescript {4} import { FunctionResult } from '@signalwire/sdk'; const result = new FunctionResult('Goodbye!') .hangup(); ``` > End the call immediately.