Up on call released release the channel and take the next item
Once a call is released, release the gsm_lchan and move to the
next item in pending_stations or wait for more work.
diff --git a/src/bsc_hack.c b/src/bsc_hack.c
index 0087de2..94bc346 100644
--- a/src/bsc_hack.c
+++ b/src/bsc_hack.c
@@ -53,6 +53,7 @@
static void bsc_hack_channel_allocated(struct gsm_lchan *chan,
enum gsm_chreq_reason_t reason);
static void bsc_hack_channel_response(struct gsm_lchan *chan, int acked);
+static void bsc_hack_call_released(struct gsm_lchan *chan);
/* The following definitions are for OM and NM packets that we cannot yet
@@ -645,6 +646,7 @@
gsmnet->update_request_accepted = bsc_hack_update_request_accepted;
gsmnet->channel_allocated = bsc_hack_channel_allocated;
gsmnet->channel_response = bsc_hack_channel_response;
+ gsmnet->call_released = bsc_hack_call_released;
if (mi_setup(bts, 0, mi_cb) < 0)
return -EIO;
@@ -875,6 +877,15 @@
}
}
+static void bsc_hack_call_released(struct gsm_lchan *lchan)
+{
+ DEBUGP(DPAG, "Call released jumping to the next...\n");
+ rsl_chan_release(lchan);
+
+ /* next!!! */
+ pag_timer_cb(0);
+}
+
int main(int argc, char **argv)
{
/* parse options */