answer

View as Markdown

Answer incoming call and set an optional maximum duration.

Properties

answer
object

An object that accepts the following properties.

answer.max_duration
integerDefaults to 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

1version: 1.0.0
2sections:
3 main:
4 - answer: {}

Named parameter

1version: 1.0.0
2sections:
3 main:
4 - answer:
5 max_duration: 60