hangup
End the call with an optional reason.
Name | Type | Default | Description |
---|---|---|---|
hangup Required | object | - | An object that contains the hangup parameters . |
hangup Parameters
Name | Type | Description |
---|---|---|
reason Optional | "hangup" | "busy" | "decline" | Hangup reason |
Examples
No parameters
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer: {}
- hangup: {}
{
"version": "1.0.0",
"sections": {
"main": [
{
"answer": {}
},
{
"hangup": {}
}
]
}
}
Set a hangup reason
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer: {}
- hangup:
reason: "busy"
{
"version": "1.0.0",
"sections": {
"main": [
{
"answer": {}
},
{
"hangup": {
"reason": "busy"
}
}
]
}
}