From 277987b3dfe8a1eb379735ce724af1c7a47f7451 Mon Sep 17 00:00:00 2001 From: file Date: Mon, 14 Sep 2009 18:18:02 +0000 Subject: Merged revisions 218295 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r218295 | file | 2009-09-14 13:16:39 -0500 (Mon, 14 Sep 2009) | 2 lines Do not attempt to add a parking extension if an error occurred while reading the configuration. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@218300 f38db490-d61c-443f-a65b-d21fe96a405b --- main/features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/features.c b/main/features.c index c6f9316f0..f428c9c22 100644 --- a/main/features.c +++ b/main/features.c @@ -3596,7 +3596,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; -- cgit v1.2.3