diff options
author | Holger Freyther <zecke@selfish.org> | 2009-02-14 22:51:06 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-02-14 22:51:06 +0000 |
commit | 053e09d102e07441974dd65b1a55e08991bf0857 (patch) | |
tree | 491c77f8d5e17a3061e6afdcc93443751bcb51cb /src/gsm_04_08.c | |
parent | 4af2b48009a88185eac3da358583ba0153a8f551 (diff) |
[signal] dispatch the paging response...
Inform people about the successfull paging response and
provide access to the subscriber, lchan and bts...
Diffstat (limited to 'src/gsm_04_08.c')
-rw-r--r-- | src/gsm_04_08.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <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 @@ 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) |