answer
Answer incoming call and set an optional maximum duration.
| Name | Type | Default | Description | 
|---|---|---|---|
| answerOptional | object | - | An object that contains the answer parameters. | 
answer Parameters
The answer method expects the following parameters.
| Name | Type | Default | Description | 
|---|---|---|---|
| max_durationOptional | integer | 14400seconds (4 hours) | Maximum duration in seconds. Can not be less than 15 seconds. | 
| sip_auth_usernameOptional | string | - | Username to use for SIP authentication. | 
| sip_auth_passwordOptional | string | - | Password to use for SIP authentication. | 
Examples
No parameters
- YAML
- JSON
version: 1.0.0
sections:
  main:
    - answer: {}
{
  "version": "1.0.0",
  "sections": {
    "main": [
      {
        "answer": {}
      }
    ]
  }
}
Named parameter
- YAML
- JSON
version: 1.0.0
sections:
  main:
    - answer:
        max_duration: 60
{
  "version": "1.0.0",
  "sections": {
    "main": [
      {
        "answer": {
          "max_duration": 60
        }
      }
    ]
  }
}