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 for the call.

answer.codecs
string

Comma-separated string of codecs to offer. Valid codecs are: PCMU, PCMA, G722, G729, AMR-WB, OPUS, VP8, H264.

answer.username
string

Username to use for SIP authentication.

answer.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