[asterisk-commits] mvanbaak: branch group/multiparking r105145 - /team/group/multiparking/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Feb 28 16:40:24 CST 2008
Author: mvanbaak
Date: Thu Feb 28 16:40:24 2008
New Revision: 105145
URL: http://svn.digium.com/view/asterisk?view=rev&rev=105145
Log:
and remove the ugly commented code before qwell shoots me again
Modified:
team/group/multiparking/main/features.c
Modified: team/group/multiparking/main/features.c
URL: http://svn.digium.com/view/asterisk/team/group/multiparking/main/features.c?view=diff&rev=105145&r1=105144&r2=105145
==============================================================================
--- team/group/multiparking/main/features.c (original)
+++ team/group/multiparking/main/features.c Thu Feb 28 16:40:24 2008
@@ -2270,17 +2270,12 @@
/* Lock parking list */
AST_LIST_LOCK(&curlot->parkings);
AST_LIST_TRAVERSE_SAFE_BEGIN(&curlot->parkings, pu, list) {
-
-//SKREP - needs AST LIST TRAVERSAL STUFF!
-// pu = curlot->occupiedlots;
struct ast_channel *chan = pu->chan; /* shorthand */
int tms; /* timeout for this item */
int x; /* fd index in channel */
struct ast_context *con;
if (pu->notquiteyet) { /* Pretend this one isn't here yet */
- //pl = pu;
- //pu = pu->parkfindnext;
continue;
}
tms = ast_tvdiff_ms(ast_tvnow(), pu->start);
@@ -2340,12 +2335,6 @@
ast_hangup(chan);
}
/* And take them out of the parking lot */
- //if (pl)
- // pl->next = pu->next;
- //else
- // curlot->occupiedlots = pu->next;
- //pt = pu;
- //pu = pu->next;
con = ast_context_find(pu->parkinglot->parking_con);
if (con) {
if (ast_context_remove_extension2(con, pu->parkingexten, 1, NULL))
@@ -2354,7 +2343,6 @@
notify_metermaids(pu->parkingexten, curlot->parking_con, AST_DEVICE_NOT_INUSE);
} else
ast_log(LOG_WARNING, "Whoa, no parking context?\n");
- //free(pt);
AST_LIST_REMOVE_CURRENT(list);
parkinglot_unref(curlot);
} else { /* still within parking time, process descriptors */
@@ -2382,12 +2370,6 @@
ast_verb(2, "%s got tired of being parked\n", chan->name);
ast_hangup(chan);
/* And take them out of the parking lot */
- //if (pl)
- // pl->next = pu->next;
- //else
- // curlot->occupiedlots = pu->next;
- //pt = pu;
- //pu = pu->next;
con = ast_context_find(curlot->parking_con);
if (con) {
if (ast_context_remove_extension2(con, pu->parkingexten, 1, NULL))
@@ -2396,7 +2378,6 @@
notify_metermaids(pu->parkingexten, curlot->parking_con, AST_DEVICE_NOT_INUSE);
} else
ast_log(LOG_WARNING, "Whoa, no parking context for parking lot %s?\n", curlot->name);
- //free(pt);
AST_LIST_REMOVE_CURRENT(list);
parkinglot_unref(curlot);
break;
@@ -2425,8 +2406,6 @@
/* Keep track of our shortest wait */
if (tms < ms || ms < 0)
ms = tms;
- //pl = pu;
- //pu = pu->next;
}
}
}
More information about the asterisk-commits
mailing list