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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 7 14:14:10 MST 2006


Author: oej
Date: Tue Mar  7 15:14:08 2006
New Revision: 12428

URL: http://svn.digium.com/view/asterisk?rev=12428&view=rev
Log:
Fix parking time

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=12428&r1=12427&r2=12428&view=diff
==============================================================================
--- team/oej/multiparking/res/res_features.c (original)
+++ team/oej/multiparking/res/res_features.c Tue Mar  7 15:14:08 2006
@@ -2226,9 +2226,9 @@
 		} else if (!strcasecmp(confvar->name, "parkingtime")) {
 			if ((sscanf(confvar->value, "%d", &parkingtime) != 1) || (parkingtime < 1)) {
 				ast_log(LOG_WARNING, "%s is not a valid parkingtime\n", confvar->value);
-				parkingtime = DEFAULT_PARK_TIME;
+				parkinglot->parkingtime = DEFAULT_PARK_TIME;
 			} else
-				parkingtime = parkingtime * 1000;
+				parkinglot->parkingtime = parkingtime * 1000;
 		} else if (!strcasecmp(confvar->name, "parkpos")) {
 			if (sscanf(confvar->value, "%d-%d", &start, &end) != 2) {
 				ast_log(LOG_WARNING, "Format for parking positions is a-b, where a and b are numbers at line %d of parking.conf\n", confvar->lineno);



More information about the asterisk-commits mailing list