# keep answer and hangup together Answer incoming call and set an optional maximum duration. ## **Parameters** The answer method expects the following parameters. | Name | Type | Required? | Default | Description | | :- | :-- | :-: | - | : | | answer | number or [answer_params](#answer-params) | Optional | 14400 seconds (4 hours) | Maximum duration in seconds. Can not be less than 15 seconds. | ### answer params | Name | Type | Required? | Default | Description | | :- | :- | :-: | - | : | | max_duration | number | Optional | 14400 seconds (4 hours) | Maximum duration in seconds. Can not be less than 15 seconds. | ## **Examples** ### No parameters yaml andJson version: 1.0.0 sections: main: - answer ### Implicit first parameter yaml andJson version: 1.0.0 sections: main: - answer: 60 ### Named parameter yaml andJson version: 1.0.0 sections: main: - answer: max_duration: 60