From 053e09d102e07441974dd65b1a55e08991bf0857 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sat, 14 Feb 2009 22:51:06 +0000 Subject: [PATCH] [signal] dispatch the paging response... Inform people about the successfull paging response and provide access to the subscriber, lchan and bts... --- src/gsm_04_08.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c index 7e80e2923..67766321e 100644 --- a/src/gsm_04_08.c +++ b/src/gsm_04_08.c @@ -41,6 +41,7 @@ #include #include #include +#include #define GSM48_ALLOC_SIZE 1024 #define GSM48_ALLOC_HEADROOM 128 @@ -698,6 +699,13 @@ static int gsm48_rr_rx_pag_resp(struct msgb *msg) } 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)