From e14a57cc0e63b747423c8aa390496552ecf735b9 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 29 Dec 2008 04:08:28 +0000 Subject: Create request channel reason to see channel requests originating from PAG --- include/openbsc/gsm_04_08.h | 1 + include/openbsc/gsm_data.h | 10 ++++++++++ 2 files changed, 11 insertions(+) (limited to 'include') diff --git a/include/openbsc/gsm_04_08.h b/include/openbsc/gsm_04_08.h index b9a2cc89e..081e869ef 100644 --- a/include/openbsc/gsm_04_08.h +++ b/include/openbsc/gsm_04_08.h @@ -344,6 +344,7 @@ int gsm0408_rcvmsg(struct msgb *msg); void gsm0408_generate_lai(struct gsm48_loc_area_id *lai48, u_int16_t mcc, u_int16_t mnc, u_int16_t lac); enum gsm_chan_t get_ctype_by_chreq(struct gsm_bts *bts, u_int8_t ra); +enum gsm_chreq_reason_t get_reason_by_chreq(struct gsm_bts *bts, u_int8_t ra); #endif diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h index c0c431eda..9c0ac556a 100644 --- a/include/openbsc/gsm_data.h +++ b/include/openbsc/gsm_data.h @@ -60,6 +60,16 @@ enum gsm_chan_t { GSM_LCHAN_UNKNOWN, }; + +/* Channel Request reason */ +enum gsm_chreq_reason_t { + GSM_CHREQ_REASON_EMERG, + GSM_CHREQ_REASON_PAG, + GSM_CHREQ_REASON_CALL, + GSM_CHREQ_REASON_LOCATION_UPD, + GSM_CHREQ_REASON_OTHER, +}; + struct gsm_lchan { /* The TS that we're part of */ struct gsm_bts_trx_ts *ts; -- cgit v1.2.3