hangup
End the call with an optional reason.
Parameters
Name | Type | Required? | Description |
---|---|---|---|
reason | "hangup" | "busy" | "decline" | Optional | Hangup reason |
Examples
No parameters
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer
- hangup
{
"version": "1.0.0",
"sections": {
"main": [
"answer",
"hangup"
]
}
}
Implicit first parameter
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer
- hangup: "busy"
{
"version": "1.0.0",
"sections": {
"main": [
"answer",
{
"hangup": "busy"
}
]
}
}
Named parameter
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer
- hangup:
reason: "busy"
{
"version": "1.0.0",
"sections": {
"main": [
"answer",
{
"hangup": {
"reason": "busy"
}
}
]
}
}