[signal] dispatch the paging response...
Inform people about the successfull paging response and
provide access to the subscriber, lchan and bts...
diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c
index 7e80e29..6776632 100644
--- a/src/gsm_04_08.c
+++ b/src/gsm_04_08.c
@@ -41,6 +41,7 @@
#include <openbsc/abis_rsl.h>
#include <openbsc/chan_alloc.h>
#include <openbsc/paging.h>
+#include <openbsc/signal.h>
#define GSM48_ALLOC_SIZE 1024
#define GSM48_ALLOC_HEADROOM 128
@@ -698,6 +699,13 @@
}
DEBUGP(DRR, "<- Channel was requested by %s\n",
subscr->name ? subscr->name : subscr->imsi);
+
+ struct paging_signal_data sig_data = {
+ .subscr = subscr,
+ .bts = msg->lchan->ts->trx->bts,
+ .lchan = msg->lchan,
+ };
+ dispatch_signal(S_PAGING, &sig_data.data);
paging_request_stop(msg->trx->bts, subscr);
if (!msg->lchan->subscr)