Skip to content

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

YAMLJSON

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

Named parameter

YAMLJSON

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

SignalWire Developer Documentation