diff --git a/main/features.c b/main/features.c index 85aaa1e0f4..2273d0b7c3 100644 --- a/main/features.c +++ b/main/features.c @@ -3421,7 +3421,7 @@ static int park_exec_full(struct ast_channel *chan, void *data, struct ast_parki /* Simulate the PBX hanging up */ ast_hangup(peer); - return res; + return -1; } else { /*! \todo XXX Play a message XXX */ if (ast_stream_and_wait(chan, "pbx-invalidpark", "")) @@ -3430,7 +3430,7 @@ static int park_exec_full(struct ast_channel *chan, void *data, struct ast_parki res = -1; } - return res; + return -1; } static int park_exec(struct ast_channel *chan, void *data)