Skip to main content

answer

Answer incoming call and set an optional maximum duration.

answer
object

An object that contains the answer parameters.

answer Parameters

The answer method expects the following parameters.

answer.max_duration
integer
Default: 14400 seconds (4 hours)

Maximum duration in seconds. Can not be less than 15 seconds.

answer.sip_auth_username
string

Username to use for SIP authentication.

answer.sip_auth_password
string

Password to use for SIP authentication.

Examples

No parameters

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

Named parameter

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