[asterisk-commits] file: trunk r218295 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 14 13:16:42 CDT 2009


Author: file
Date: Mon Sep 14 13:16:39 2009
New Revision: 218295

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=218295
Log:
Do not attempt to add a parking extension if an error occurred while reading the configuration.

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/features.c?view=diff&rev=218295&r1=218294&r2=218295
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Mon Sep 14 13:16:39 2009
@@ -3819,7 +3819,7 @@
 	}
 
 	/* 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;




More information about the asterisk-commits mailing list