dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
file 2009-09-14 18:16:39 +00:00
parent c847a454ce
commit 046ca84efa
1 changed files with 1 additions and 1 deletions

View File

@ -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;