aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/chan_alloc.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-29 11:17:18 +0100
committerHarald Welte <laforge@netfilter.org>2010-01-01 10:59:19 +0100
commit83579ca8ff706cd2d5ed27a10fa90129bdd943f4 (patch)
treebe943b24ea38bbd4d6382b6651e6c95e0d373c2d /openbsc/src/chan_alloc.c
parentf31e4745bb32d120f55d8442669d666d88619fa0 (diff)
keep 'silent call' state in struct lchan
This enables us to reliably detect if a lchan is part of a silent call or not.
Diffstat (limited to 'openbsc/src/chan_alloc.c')
-rw-r--r--openbsc/src/chan_alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index 8141e4774..48f87f211 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -302,6 +302,8 @@ void lchan_free(struct gsm_lchan *lchan)
for (i = 0; i < ARRAY_SIZE(lchan->neigh_meas); i++)
lchan->neigh_meas[i].arfcn = 0;
+ lchan->silent_call = 0;
+
/* FIXME: ts_free() the timeslot, if we're the last logical
* channel using it */
}