From: Joshua Colp Date: Mon, 14 Sep 2009 18:16:39 +0000 (+0000) Subject: Do not attempt to add a parking extension if an error occurred while reading the... X-Git-Tag: 11.0.0-beta1~4176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3031ca468d78289e75bd091f127c960f79e8b6eb;p=thirdparty%2Fasterisk.git Do not attempt to add a parking extension if an error occurred while reading the configuration. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218295 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/features.c b/main/features.c index 0a4336f3be..4af8d1d111 100644 --- a/main/features.c +++ b/main/features.c @@ -3819,7 +3819,7 @@ static struct ast_parkinglot *build_parkinglot(char *name, struct ast_variable * } /* Add a parking extension into the context */ - if (!oldparkinglot) { + if (!error && !oldparkinglot) { if (!ast_strlen_zero(ast_parking_ext())) { if (ast_add_extension2(con, 1, ast_parking_ext(), 1, NULL, NULL, parkcall, strdup(""), ast_free_ptr, registrar) == -1) error = 1;