diff --git a/main/pbx.c b/main/pbx.c index 3edea4e050..6968171f22 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -7655,6 +7655,10 @@ static int pbx_builtin_answer(struct ast_channel *chan, void *data) if ((chan->_state != AST_STATE_UP) && !ast_strlen_zero(data)) delay = atoi(data); + if (delay < 0) { + delay = 0; + } + return __ast_answer(chan, delay); }