answer
Answer incoming call and set an optional maximum duration.
An object that contains the answer parameters.
answer Parameters
The answer method expects the following parameters.
Comma-separated string of codecs to offer. Valid codecs are: PCMU, PCMA, G722, G729, AMR-WB, OPUS, VP8, H264.
Examples
No parameters
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer: {}
{
"version": "1.0.0",
"sections": {
"main": [
{
"answer": {}
}
]
}
}
Named parameter
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer:
max_duration: 60
{
"version": "1.0.0",
"sections": {
"main": [
{
"answer": {
"max_duration": 60
}
}
]
}
}