[asterisk-commits] branch oej/multiparking - r8312 /team/oej/multiparking/res/res_features.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jan 19 16:37:44 MST 2006


Author: oej
Date: Thu Jan 19 17:37:43 2006
New Revision: 8312

URL: http://svn.digium.com/view/asterisk?rev=8312&view=rev
Log:
Small fix while testing...

Modified:
    team/oej/multiparking/res/res_features.c

Modified: team/oej/multiparking/res/res_features.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/res/res_features.c?rev=8312&r1=8311&r2=8312&view=diff
==============================================================================
--- team/oej/multiparking/res/res_features.c (original)
+++ team/oej/multiparking/res/res_features.c Thu Jan 19 17:37:43 2006
@@ -325,8 +325,6 @@
 	const char *parkinglotname;
 	
 
-	if (!parkinglot)
-		parkinglot = default_parkinglot;
 
 	parkinglotname = findparkinglotname(peer);
 
@@ -335,6 +333,9 @@
 			ast_log(LOG_DEBUG, "---------**--------- Found chanvar Parkinglot: %s\n", parkinglotname);
 		parkinglot = find_parkinglot(parkinglotname);	
 	}
+	if (!parkinglot)
+		parkinglot = default_parkinglot;
+
 	ast_log(LOG_DEBUG, "---------**--------- Parkinglot: %s\n", parkinglot->name);
 
 	pu = malloc(sizeof(struct parkeduser));



More information about the asterisk-commits mailing list