Skip to main content

answer

Answer incoming call and set an optional maximum duration.

Parameters

The answer method expects the following parameters.

NameTypeDefaultDescription
answerOptionalnumber or answer_params14400 seconds (4 hours)Maximum duration in seconds. Can not be less than 15 seconds.

answer params

NameTypeDefaultDescription
max_durationOptionalnumber14400 seconds (4 hours)Maximum duration in seconds. Can not be less than 15 seconds.

Examples

No parameters

version: 1.0.0
sections:
main:
- answer

Implicit first parameter

version: 1.0.0
sections:
main:
- answer: 60

Named parameter

version: 1.0.0
sections:
main:
- answer:
max_duration: 60