diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-14 18:16:39 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-14 18:16:39 +0000 |
commit | 046ca84efa8f50a36c252ce5410e57d078de70f0 (patch) | |
tree | 7dd548734982f8d0b57e4b4a78a6dc57efab2f6c /main/features.c | |
parent | c847a454ced2467a7a3bc6553ac3b523359a79a6 (diff) |
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/trunk@218295 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/features.c')
-rw-r--r-- | main/features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c index 0a4336f3b..4af8d1d11 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; |