> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # answer > Answer incoming call and set an optional maximum duration. Answer incoming call and set an optional maximum duration. ## **Properties** **`answer`** `object` — required An object that accepts the following properties. --- **`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 #### YAML ```yaml version: 1.0.0 sections: main: - answer: {} ``` #### JSON ```json { "version": "1.0.0", "sections": { "main": [ { "answer": {} } ] } } ``` --- ### Named parameter #### YAML ```yaml version: 1.0.0 sections: main: - answer: max_duration: 60 ``` #### JSON ```json { "version": "1.0.0", "sections": { "main": [ { "answer": { "max_duration": 60 } } ] } } ``` > Answer incoming call and set an optional maximum duration.