Server SDKs
Build AI agents, control calls, send messages, and more
End the call immediately.
This is a terminal action. Any actions chained after hangup() may not execute. Always place hangup() last in the chain.
hangup()
None.
FunctionResult — this, for chaining.
FunctionResult
this
1import { FunctionResult } from '@signalwire/sdk';23const result = new FunctionResult('Goodbye!')4 .hangup();