Skip to main content

hangup

End the call with an optional reason.

NameTypeDefaultDescription
hangupRequiredobject-An object that contains the hangup parameters.

hangup Parameters

NameTypeDescription
reasonOptional"hangup" | "busy" | "decline"Hangup reason

Examples

No parameters

version: 1.0.0
sections:
main:
- answer: {}
- hangup: {}

Set a hangup reason

version: 1.0.0
sections:
main:
- answer: {}
- hangup:
reason: "busy"