26struct sockaddr_storage;
38#define GSM0808_CELL_ID_LIST2_MAXLEN 127
69#if OSMO_IS_LITTLE_ENDIAN
75#elif OSMO_IS_BIG_ENDIAN
77 uint8_t spare:1, pci:1, priority_level:4, qa:1, pvi:1;
83#if OSMO_IS_LITTLE_ENDIAN
90#elif OSMO_IS_BIG_ENDIAN
92 uint8_t spare:3, tcp:1, bss_res:1, as_ind_link:1, as_ind_circuit:1, tp_ind:1;
122#if OSMO_IS_LITTLE_ENDIAN
123 uint8_t call_ref_hi[3];
124 uint8_t call_priority:3,
130#elif OSMO_IS_BIG_ENDIAN
132 uint8_t call_ref_hi[3];
133 uint8_t call_ref_lo:3, sf:1, af:1, call_priority:3;
134 uint8_t ciphering_info:4, spare:4;
152#define CIRCUIT_POOL_LIST_MAXLEN 252
166#define LAYER_3_INFORMATION_MAXLEN 252
173#define TALKER_IDENTITY_MAXLEN 17
188#define SMS_TO_VGCS_MAXLEN 252
195#define APP_DATA_MAXLEN 9
207#define GSM0808_DP_MASK_TALKERS_LISTENERS 0x04
208#define GSM0808_DP_MASK_DISPATCHERS 0x02
209#define GSM0808_DP_MASK_NETWORK_APP 0x01
212#if OSMO_IS_LITTLE_ENDIAN
216#elif OSMO_IS_BIG_ENDIAN
218 uint8_t dp:3, di:4, ai:1;
223#define MSISDN_MAXLEN 20
255 unsigned int match_nr,
bool exact_match);
265 const struct sockaddr_storage *ss);
267 const uint8_t *elem, uint8_t
len);
279 const uint8_t *elem, uint8_t
len);
286 const uint8_t *elem, uint8_t
len);
290 const uint8_t *elem, uint8_t
len);
294 const uint8_t *elem, uint8_t
len);
303 const uint8_t *elem, uint8_t
len)
318 return (
cause >> 4) & 0x7;
351#define MODE_TYPE(mode, type) ((mode << 16) | type)
384 uint8_t channel_mode = 0, channel = 0;
459 return channel_mode << 4 | channel;
const char * gsm0808_channel_type_name(const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:2184
enum gsm0808_assignment_requirement __attribute__
int gsm0808_dec_group_callref(struct gsm0808_group_callref *gc, const uint8_t *elem, uint8_t len)
Decode Group Call Reference IE (3GPP TS 48.008 3.2.2.55).
Definition: gsm0808_utils.c:2225
int gsm0808_dec_speech_codec_list(struct gsm0808_speech_codec_list *scl, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Speech Codec list IE.
Definition: gsm0808_utils.c:455
uint8_t gsm0808_enc_cell_id_list_segment(struct msgb *msg, uint8_t ie_type, const struct gsm0808_cell_id_list_segment *ci)
Encode Cell Identifier List Segment IE (3GPP TS 48.008 3.2.2.27a).
Definition: gsm0808_utils.c:2493
int gsm0808_dec_cell_id_list(struct gsm0808_cell_id_list *cil, const uint8_t *elem, uint8_t len) OSMO_DEPRECATED("use gsm0808_dec_cell_id_list2 instead")
DEPRECATED: Use gsm0808_dec_cell_id_list2 instead.
Definition: gsm0808_utils.c:1371
uint8_t gsm0808_enc_cause(struct msgb *msg, uint16_t cause)
int gsm0808_dec_channel_type(struct gsm0808_channel_type *ct, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Channel Type IE.
Definition: gsm0808_utils.c:559
int gsm0808_dec_assign_req(enum gsm0808_assignment_requirement *ar, const uint8_t *elem, uint8_t len)
Decode Assignment Requirements IE (3GPP TS 48.008 3.2.2.52).
Definition: gsm0808_utils.c:2475
void gsm0808_msgb_put_cell_id_u(struct msgb *msg, enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u)
Definition: gsm0808_utils.c:1023
int gsm0808_dec_cell_id_list_segment(struct gsm0808_cell_id_list_segment *ci, const uint8_t *elem, uint8_t len)
Decode Cell Identifier List Segment IE (3GPP TS 48.008 3.2.2.27a).
Definition: gsm0808_utils.c:2522
int gsm0808_enc_speech_codec2(struct msgb *msg, const struct gsm0808_speech_codec *sc)
Encode TS 08.08 Speech Codec IE.
Definition: gsm0808_utils.c:296
uint16_t gsm0808_sc_cfg_from_gsm48_mr_cfg(const struct gsm48_multi_rate_conf *cfg, bool fr)
Determine a set of AMR speech codec configuration bits (S0-S15) from a given GSM 04....
Definition: gsm0808_utils.c:1665
int gsm0808_chan_type_to_speech_codec(uint8_t perm_spch)
Convert the representation of the permitted speech codec identifier that is used in struct gsm0808_ch...
Definition: gsm0808_utils.c:1574
char * gsm0808_cell_id_list_name_c(const void *ctx, const struct gsm0808_cell_id_list2 *cil)
Definition: gsm0808_utils.c:2167
const char * gsm0808_cell_id_name(const struct gsm0808_cell_id *cid)
Return a human readable representation of a Cell Identifier, like "LAC:123" or "CGI:001-01-42-23".
Definition: gsm0808_utils.c:2092
int gsm0808_get_cipher_reject_cause(const struct tlv_parsed *tp) OSMO_DEPRECATED("Use gsm0808_get_cause() instead")
Definition: gsm0808_utils.c:1806
int gsm0808_dec_cell_id_list2(struct gsm0808_cell_id_list2 *cil, const uint8_t *elem, uint8_t len)
Decode Cell Identifier List IE.
Definition: gsm0808_utils.c:1304
static bool gsm0808_cause_ext(enum gsm0808_cause cause)
Definition: gsm0808_utils.h:322
uint8_t gsm0808_enc_cell_id(struct msgb *msg, const struct gsm0808_cell_id *ci)
Encode Cell Identifier IE (3GPP TS 48.008 3.2.2.17).
Definition: gsm0808_utils.c:1525
char * osmo_gcr_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls)
Dump GCR struct into string for printing.
Definition: gsm0808_utils.c:760
gsm0808_call_priority
Definition: gsm0808_utils.h:109
int gsm48_mr_cfg_from_gsm0808_sc_cfg(struct gsm48_multi_rate_conf *cfg, uint16_t s15_s0)
Determine a GSM 04.08 AMR configuration struct from a set of speech codec configuration bits (S0-S15)
Definition: gsm0808_utils.c:1718
#define APP_DATA_MAXLEN
Parsed representation of a Application Data IE (3GPP TS 48.008 3.2.2.98)
Definition: gsm0808_utils.h:195
int gsm0808_dec_vgcs_feature_flags(struct gsm0808_vgcs_feature_flags *ff, const uint8_t *elem, uint8_t len)
Decode VGCS Feature Flags IE (3GPP TS 48.008 3.2.2.88).
Definition: gsm0808_utils.c:2305
int gsm0808_cell_id_u_name(char *buf, size_t buflen, enum CELL_IDENT id_discr, const union gsm0808_cell_id_u *u)
Print a human readable name of the cell identifier to the char buffer.
Definition: gsm0808_utils.c:1821
char * osmo_lcls_dump_c(void *ctx, const struct osmo_lcls *lcls)
Definition: gsm0808_utils.c:747
int gsm0808_cell_id_matches_list(const struct gsm0808_cell_id *id, const struct gsm0808_cell_id_list2 *list, unsigned int match_nr, bool exact_match)
Find an index in a Cell Identifier list that matches a given single Cell Identifer.
Definition: gsm0808_utils.c:1936
gsm0808_application_idndicator
Packed representation of a Data Identity IE (GGPP TS 48.008 3.2.2.99)
Definition: gsm0808_utils.h:202
int gsm0808_dec_msisdn(char *msisdn, const char *elem, uint8_t len)
Decode MSISDN IE (3GPP TS 48.008 3.2.2.101).
Definition: gsm0808_utils.c:2389
int gsm0808_dec_talker_identity(struct gsm0808_talker_identity *ti, const uint8_t *elem, uint8_t len)
Decode Talker Identity IE (3GPP TS 48.008 3.2.2.91).
Definition: gsm0808_utils.c:2434
static enum gsm0808_cause_class gsm0808_cause_class(enum gsm0808_cause cause)
Definition: gsm0808_utils.h:316
bool gsm0808_cell_ids_match(const struct gsm0808_cell_id *id1, const struct gsm0808_cell_id *id2, bool exact_match)
Return true if the common information between the two Cell Identifiers match.
Definition: gsm0808_utils.c:1919
int gsm0808_dec_call_id(uint32_t *ci, const uint8_t *elem, uint8_t len)
Decode Call Identifier IE (3GPP TS 48.008 3.2.2.105).
Definition: gsm0808_utils.c:2547
gsm0808_vgcs_vbs_cell_status
Definition: gsm0808_utils.h:180
int gsm0808_dec_kc128(uint8_t *kc128, const uint8_t *elem, uint8_t len)
Decode TS 48.008 Kc128 IE.
Definition: gsm0808_utils.c:879
int gsm0808_decode_cell_id_u(union gsm0808_cell_id_u *out, enum CELL_IDENT discr, const uint8_t *buf, unsigned int len)
Decode a single GSM 08.08 Cell ID list element payload.
Definition: gsm0808_utils.c:968
uint8_t gsm0808_enc_cell_id_list(struct msgb *msg, const struct gsm0808_cell_id_list *cil) OSMO_DEPRECATED("use gsm0808_enc_cell_id_list2 instead")
DEPRECATED: Use gsm0808_enc_cell_id_list2 instead.
Definition: gsm0808_utils.c:1129
gsm0808_talker_priority
Definition: gsm0808_utils.h:159
uint8_t gsm0808_enc_group_callref(struct msgb *msg, const struct gsm0808_group_callref *gc)
Encode Group Call Reference IE (3GPP TS 48.008 3.2.2.55).
Definition: gsm0808_utils.c:2202
char * gsm0808_channel_type_name_c(const void *ctx, const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:2190
char * gsm0808_cell_id_name_c(const void *ctx, const struct gsm0808_cell_id *cid)
Definition: gsm0808_utils.c:2108
static const char * gsm0808_cell_id_discr_name(enum CELL_IDENT id_discr)
Definition: gsm0808_utils.h:241
uint8_t gsm0808_enc_lcls(struct msgb *msg, const struct osmo_lcls *lcls)
Add LCLS parameters to a given msgb, 3GPP TS 48.008 §3.2.2.115 - 3.2.2.120.
Definition: gsm0808_utils.c:672
static uint8_t gsm0808_current_channel_type_1(enum gsm_chan_t type)
Definition: gsm0808_utils.h:332
int gsm0808_dec_encrypt_info(struct gsm0808_encrypt_info *ei, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Encryption Information IE.
Definition: gsm0808_utils.c:828
void gsm0808_cell_id_to_list(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id *src)
Convert a single Cell Identifier to a Cell Identifier List with one entry.
Definition: gsm0808_utils.c:1494
uint8_t gsm0808_enc_priority(struct msgb *msg, const struct gsm0808_priority *pri)
Encode Priority IE (3GPP TS 48.008 3.2.2.18).
Definition: gsm0808_utils.c:2242
int gsm0808_enc_speech_codec_list2(struct msgb *msg, const struct gsm0808_speech_codec_list *scl)
Encode TS 08.08 Speech Codec list.
Definition: gsm0808_utils.c:411
#define GSM0808_CELL_ID_LIST2_MAXLEN
(225-1)/2 is the maximum number of elements in a cell identifier list.
Definition: gsm0808_utils.h:38
int gsm0808_dec_lcls(struct osmo_lcls *lcls, const struct tlv_parsed *tp)
Decode LCLS parameters to a given msgb, 3GPP TS 48.008 §3.2.2.115 - 3.2.2.120.
Definition: gsm0808_utils.c:705
int gsm0808_dec_osmux_cid(uint8_t *cid, const uint8_t *elem, uint8_t len)
uint8_t gsm0808_enc_encrypt_info(struct msgb *msg, const struct gsm0808_encrypt_info *ei)
Encode TS 08.08 Encryption Information IE.
Definition: gsm0808_utils.c:789
uint8_t gsm0808_enc_data_identity(struct msgb *msg, const struct gsm0808_data_identity *ai)
Encode Data Identity IE (3GPP TS 48.008 3.2.2.99).
Definition: gsm0808_utils.c:2322
uint8_t gsm0808_enc_aoip_trasp_addr(struct msgb *msg, const struct sockaddr_storage *ss)
int gsm0808_dec_data_identity(struct gsm0808_data_identity *ai, const uint8_t *elem, uint8_t len)
Decode Data Identity IE (3GPP TS 48.008 3.2.2.99).
Definition: gsm0808_utils.c:2345
int gsm0808_dec_aoip_trasp_addr(struct sockaddr_storage *ss, const uint8_t *elem, uint8_t len)
uint8_t gsm0808_enc_cell_id_list2(struct msgb *msg, const struct gsm0808_cell_id_list2 *cil)
Encode TS 08.08 Cell Identifier List IE.
Definition: gsm0808_utils.c:1087
int gsm0808_cell_id_list_add(struct gsm0808_cell_id_list2 *dst, const struct gsm0808_cell_id_list2 *src)
Append entries from one Cell Identifier List to another.
Definition: gsm0808_utils.c:1457
const char * gsm0808_cell_id_list_name(const struct gsm0808_cell_id_list2 *cil)
Return a human-readable representation of cil in a static buffer.
Definition: gsm0808_utils.c:2160
char * gsm0808_cell_id_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id *cid)
Definition: gsm0808_utils.c:2078
uint8_t gsm0808_enc_msisdn(struct msgb *msg, const char *msisdn)
Encode MSISDN IE (3GPP TS 48.008 3.2.2.101).
Definition: gsm0808_utils.c:2362
char * osmo_lcls_dump(const struct osmo_lcls *lcls)
Dump LCLS parameters (GCR excluded) into static string buffer for printing.
Definition: gsm0808_utils.c:742
gsm0808_service_flag
Definition: gsm0808_utils.h:104
int gsm0808_cell_id_size(enum CELL_IDENT discr)
Definition: gsm0808_utils.c:938
static enum gsm0808_permitted_speech gsm0808_permitted_speech(enum gsm_chan_t type, enum gsm48_chan_mode mode)
Return 3GPP TS 48.008 3.2.2.51 Speech Version aka permitted speech version indication in 3....
Definition: gsm0808_utils.h:348
#define TALKER_IDENTITY_MAXLEN
Parsed representation of a Talker Identity IE (3GPP TS 48.008 3.2.2.91)
Definition: gsm0808_utils.h:173
int gsm0808_cell_id_list_name_buf(char *buf, size_t buflen, const struct gsm0808_cell_id_list2 *cil)
Return a human readable representation of the Cell Identifier List, like "LAC[2]:{123,...
Definition: gsm0808_utils.c:2128
#define LAYER_3_INFORMATION_MAXLEN
Parsed representation of a Layer 3 Information IE (3GPP TS 48.008 3.2.2.24)
Definition: gsm0808_utils.h:166
int gsm0808_dec_cell_id(struct gsm0808_cell_id *ci, const uint8_t *elem, uint8_t len)
Decode Cell Identifier IE (3GPP TS 48.008 3.2.2.17).
Definition: gsm0808_utils.c:1550
int gsm0808_speech_codec_from_chan_type(struct gsm0808_speech_codec *sc, uint8_t perm_spch)
Extrapolate a speech codec field from a given permitted speech parameter (channel type).
Definition: gsm0808_utils.c:1612
uint8_t gsm0808_enc_speech_codec(struct msgb *msg, const struct gsm0808_speech_codec *sc) OSMO_DEPRECATED("use gsm0808_enc_speech_codec2() instead")
Deprecated: gsm0808_enc_speech_codec2() wrapper for backwards compatibility.
Definition: gsm0808_utils.c:316
uint8_t gsm0808_enc_speech_codec_list(struct msgb *msg, const struct gsm0808_speech_codec_list *scl) OSMO_DEPRECATED("use gsm0808_enc_speech_codec_list2() instead")
Deprecated: gsm0808_enc_speech_codec_list2() wrapper for backwards compatibility.
Definition: gsm0808_utils.c:439
const struct value_string gsm0808_cell_id_discr_names[]
value_string[] for enum CELL_IDENT.
Definition: gsm0808_utils.c:2062
uint8_t gsm0808_enc_vgcs_feature_flags(struct msgb *msg, const struct gsm0808_vgcs_feature_flags *ff)
Encode VGCS Feature Flags IE (3GPP TS 48.008 3.2.2.88).
Definition: gsm0808_utils.c:2282
uint8_t gsm0808_enc_talker_identity(struct msgb *msg, const struct gsm0808_talker_identity *ti)
Encode Talker Identity IE (3GPP TS 48.008 3.2.2.91).
Definition: gsm0808_utils.c:2406
char * gsm0808_channel_type_name_buf(char *buf, size_t buf_len, const struct gsm0808_channel_type *ct)
Definition: gsm0808_utils.c:2176
int gsm0808_dec_speech_codec(struct gsm0808_speech_codec *sc, const uint8_t *elem, uint8_t len)
Decode TS 08.08 Speech Codec IE.
Definition: gsm0808_utils.c:332
gsm0808_downlink_dtx_flag
Definition: gsm0808_utils.h:139
char * osmo_lcls_dump_buf(char *buf, size_t buf_len, const struct osmo_lcls *lcls)
Dump LCLS parameters (GCR excluded) into string for printing.
Definition: gsm0808_utils.c:724
gsm0808_assignment_requirement
Definition: gsm0808_utils.h:97
static uint8_t gsm0808_chosen_channel(enum gsm_chan_t type, enum gsm48_chan_mode mode)
Return 3GPP TS 48.008 3.2.2.33 Chosen Channel.
Definition: gsm0808_utils.h:382
uint8_t gsm0808_enc_assign_req(struct msgb *msg, const enum gsm0808_assignment_requirement ar)
Encode Assignment Requirements IE (3GPP TS 48.008 3.2.2.52).
Definition: gsm0808_utils.c:2456
int gsm0808_cell_id_to_cgi(struct osmo_cell_global_id *cgi, const struct gsm0808_cell_id *cid)
Overwrite parts of cgi with values from a Cell Identifier.
Definition: gsm0808_utils.c:2018
const char * gsm0808_cell_id_name2(const struct gsm0808_cell_id *cid)
Like gsm0808_cell_id_name() but uses a different static buffer.
Definition: gsm0808_utils.c:2102
#define SMS_TO_VGCS_MAXLEN
Parsed representation of a SMS to VGCS IE (3GPP TS 48.008 3.2.2.92)
Definition: gsm0808_utils.h:188
#define CIRCUIT_POOL_LIST_MAXLEN
Parsed representation of a Circuit Pool List IE (3GPP TS 48.008 3.2.2.26)
Definition: gsm0808_utils.h:152
char * osmo_gcr_dump(const struct osmo_lcls *lcls)
Dump GCR struct into static string buffer for printing.
Definition: gsm0808_utils.c:779
void gsm0808_cell_id_from_cgi(struct gsm0808_cell_id *cid, enum CELL_IDENT id_discr, const struct osmo_cell_global_id *cgi)
Copy information from a CGI to form a Cell Identifier of the specified kind.
Definition: gsm0808_utils.c:1956
int gsm0808_enc_kc128(struct msgb *msg, const uint8_t *kc128)
Encode TS 48.008 Kc128 IE.
Definition: gsm0808_utils.c:867
int gsm0808_dec_priority(struct gsm0808_priority *pri, const uint8_t *elem, uint8_t len)
Decode Priority IE (3GPP TS 48.008 3.2.2.18).
Definition: gsm0808_utils.c:2265
uint8_t gsm0808_enc_channel_type(struct msgb *msg, const struct gsm0808_channel_type *ct)
Encode TS 08.08 Channel Type IE.
Definition: gsm0808_utils.c:491
@ GSM0808_CALL_PRIORITY_LEVEL_1
Definition: gsm0808_utils.h:114
@ GSM0808_CALL_PRIORITY_LEVEL_0
Definition: gsm0808_utils.h:115
@ GSM0808_CALL_PRIORITY_LEVEL_B
Definition: gsm0808_utils.h:116
@ GSM0808_CALL_PRIORITY_LEVEL_4
Definition: gsm0808_utils.h:111
@ GSM0808_CALL_PRIORITY_LEVEL_2
Definition: gsm0808_utils.h:113
@ GSM0808_CALL_PRIORITY_LEVEL_A
Definition: gsm0808_utils.h:117
@ GSM0808_CALL_PRIORITY_LEVEL_3
Definition: gsm0808_utils.h:112
@ GSM0808_CALL_PRIORITY_NONE
Definition: gsm0808_utils.h:110
@ GSM0808_AI_CONFIRM_APP_DATA
Definition: gsm0808_utils.h:204
@ GSM0808_AI_APP_DATA
Definition: gsm0808_utils.h:203
@ GSM0808_CSTAT_NOT_ESTABLISHED1
Definition: gsm0808_utils.h:182
@ GSM0808_CSTAT_RELEASED_NO_USER
Definition: gsm0808_utils.h:183
@ GSM0808_CSTAT_ESTABLISHED
Definition: gsm0808_utils.h:181
@ GSM0808_CSTAT_NOT_ESTABLISHED2
Definition: gsm0808_utils.h:184
@ GSM0808_TALKER_PRIORITY_PRIVILEGED
Definition: gsm0808_utils.h:161
@ GSM0808_TALKER_PRIORITY_NORMAL
Definition: gsm0808_utils.h:160
@ GSM0808_TALKER_PRIORITY_EMERGENCY
Definition: gsm0808_utils.h:162
@ GSM0808_SF_VGCS
Definition: gsm0808_utils.h:106
@ GSM0808_SF_VBS
Definition: gsm0808_utils.h:105
@ GSM0808_DTX_FLAG_ALLOW
Definition: gsm0808_utils.h:140
@ GSM0808_DTX_FLAG_FORBID
Definition: gsm0808_utils.h:141
@ GSM0808_ASRQ_IMMEDIATE_ON_DEMAND
Definition: gsm0808_utils.h:100
@ GSM0808_ASRQ_IMMEDIATE
Definition: gsm0808_utils.h:99
@ GSM0808_ASRQ_DELAY_ALLOWED
Definition: gsm0808_utils.h:98
#define OSMO_DEPRECATED(text)
const char * get_value_string(const struct value_string *vs, uint32_t val)
#define MODE_TYPE(mode, type)
GSM TS 04.08 definitions.
uint8_t cause
Definition: gsm_04_08.h:2
gsm48_chan_mode
10.5.2.6 Channel Mode value
Definition: gsm_04_08.h:750
@ GSM48_CMODE_DATA_6k0
CSD: 6.0 kbit/s radio interface rate, 4.8 kbit/s services (TCH/{F,H}4.8)
Definition: gsm_04_08.h:790
@ GSM48_CMODE_DATA_14k5_29k0
Definition: gsm_04_08.h:775
@ GSM48_CMODE_DATA_29k0_43k5
Definition: gsm_04_08.h:777
@ GSM48_CMODE_SPEECH_V1
Speech: FR (TCH/FS) or HR (TCH/HS)
Definition: gsm_04_08.h:754
@ GSM48_CMODE_DATA_3k6
CSD: 3.6 kbit/s radio interface rate, 2.4 kbit/s and less services (TCH/{F,H}2.4)
Definition: gsm_04_08.h:792
@ GSM48_CMODE_SPEECH_V6
Speech: OHR AMR (O-TCH/AHS)
Definition: gsm_04_08.h:764
@ GSM48_CMODE_SIGN
Signalling only (TCH/F or TCH/H)
Definition: gsm_04_08.h:752
@ GSM48_CMODE_DATA_32k0
ECSD: 32.0 kbit/s radio interface rate, 32.0 kbit/s services (E-TCH/F32.0)
Definition: gsm_04_08.h:782
@ GSM48_CMODE_DATA_29k0
ECSD: 29.0 kbit/s radio interface rate, 28.8 kbit/s services (E-TCH/F28.8)
Definition: gsm_04_08.h:784
@ GSM48_CMODE_SPEECH_V5
Speech: FR AMR-WB (TCH/WFS)
Definition: gsm_04_08.h:762
@ GSM48_CMODE_DATA_12k0
CSD: 12.0 kbit/s radio interface rate, 9.6 kbit/s services (TCH/F9.6)
Definition: gsm_04_08.h:788
@ GSM48_CMODE_DATA_14k5_43k5
Definition: gsm_04_08.h:773
@ GSM48_CMODE_SPEECH_AMR
Speech: AMR (TCH/AFS or TCH/AHS)
Definition: gsm_04_08.h:758
@ GSM48_CMODE_DATA_43k5_14k5
Definition: gsm_04_08.h:767
@ GSM48_CMODE_SPEECH_V4
Speech: OFR AMR-WB (O-TCH/WFS) or OHR AMR-WB (O-TCH/WHS)
Definition: gsm_04_08.h:760
@ GSM48_CMODE_DATA_43k5_29k0
Definition: gsm_04_08.h:771
@ GSM48_CMODE_DATA_29k0_14k5
Definition: gsm_04_08.h:769
@ GSM48_CMODE_DATA_43k5
ECSD: 43.5 kbit/s radio interface rate, 43.2 kbit/s services (E-TCH/F43.2)
Definition: gsm_04_08.h:780
@ GSM48_CMODE_SPEECH_EFR
Speech: EFR (TCH/EFS)
Definition: gsm_04_08.h:756
@ GSM48_CMODE_DATA_14k5
CSD: 14.5 kbit/s radio interface rate, 14.4 kbit/s services (TCH/F14.4)
Definition: gsm_04_08.h:786
uint8_t mode
Definition: gsm_04_08.h:1
uint8_t type
Definition: gsm_04_08_gprs.h:7
uint8_t len
Definition: gsm_04_11.h:0
gsm0808_cause
Definition: gsm_08_08.h:367
uint8_t msg[0]
Definition: gsm_08_08.h:8
gsm0808_cause_class
Definition: gsm_08_08.h:434
gsm0808_lcls_control
Definition: gsm_08_08.h:793
gsm0808_lcls_config
Definition: gsm_08_08.h:782
gsm0808_permitted_speech
GSM 08.08 3.2.2.11 Channel Type (see also 3GPP TS 48.008, section 3.2.2.11)
Definition: gsm_08_08.h:494
@ GSM0808_PERM_FR2
GSM EFR.
Definition: gsm_08_08.h:496
@ GSM0808_PERM_HR6
OHR AMR.
Definition: gsm_08_08.h:504
@ GSM0808_PERM_FR1
GSM FR.
Definition: gsm_08_08.h:495
@ GSM0808_PERM_HR1
GSM HR.
Definition: gsm_08_08.h:500
@ GSM0808_PERM_HR4
OHR AMR-WB.
Definition: gsm_08_08.h:503
@ GSM0808_PERM_HR3
HR AMR.
Definition: gsm_08_08.h:502
@ GSM0808_PERM_HR2
(deprecated)
Definition: gsm_08_08.h:501
@ GSM0808_PERM_FR3
FR AMR.
Definition: gsm_08_08.h:497
@ GSM0808_PERM_FR4
OFR AMR-WB.
Definition: gsm_08_08.h:498
@ GSM0808_PERM_FR5
FR AMR-WB.
Definition: gsm_08_08.h:499
CELL_IDENT
Definition: gsm_08_08.h:17
GSM utility functions, e.g.
gsm_chan_t
Definition: gsm_utils.h:236
@ GSM_LCHAN_TCH_H
Definition: gsm_utils.h:240
@ GSM_LCHAN_SDCCH
Definition: gsm_utils.h:238
@ GSM_LCHAN_TCH_F
Definition: gsm_utils.h:239
@ GSM_LCHAN_NONE
Definition: gsm_utils.h:237
Definition: gsm0808_utils.h:196
unsigned int data_len
Definition: gsm0808_utils.h:198
uint8_t data[APP_DATA_MAXLEN]
Definition: gsm0808_utils.h:197
Parsed representation of a Cell Identifier List IE (3GPP TS 48.008 3.2.2.27).
Definition: gsm0808_utils.h:61
enum CELL_IDENT id_discr
Definition: gsm0808_utils.h:62
union gsm0808_cell_id_u id_list[GSM0808_CELL_ID_LIST2_MAXLEN]
Definition: gsm0808_utils.h:63
unsigned int id_list_len
Definition: gsm0808_utils.h:64
Parsed representation of a Cell Identifier List Segment IE (3GPP TS 48.008 3.2.2.27a)
Definition: gsm0808_utils.h:145
uint8_t seq_last
Definition: gsm0808_utils.h:146
struct gsm0808_cell_id_list2 cil
Definition: gsm0808_utils.h:148
uint8_t seq_number
Definition: gsm0808_utils.h:147
DEPRECATED: This definition of the cell identifier list is insufficient.
Definition: gsm_08_08.h:775
Parsed representation of Cell Identifier IE (3GPP TS 48.008 3.2.2.17)
Definition: gsm0808_utils.h:55
union gsm0808_cell_id_u id
Definition: gsm0808_utils.h:57
enum CELL_IDENT id_discr
Definition: gsm0808_utils.h:56
Definition: gsm_08_08.h:741
Definition: gsm0808_utils.h:153
uint8_t pool[CIRCUIT_POOL_LIST_MAXLEN]
Definition: gsm0808_utils.h:154
unsigned int list_len
Definition: gsm0808_utils.h:155
Definition: gsm0808_utils.h:211
Definition: gsm_08_08.h:761
Packed representation of a Group Call Reference IE (3GPP TS 48.008 3.2.2.55)
Definition: gsm0808_utils.h:121
Packed representation of a Priority IE (GGPP TS 48.008 3.2.2.18)
Definition: gsm0808_utils.h:68
Definition: gsm0808_utils.h:189
uint8_t sms[SMS_TO_VGCS_MAXLEN]
Definition: gsm0808_utils.h:190
unsigned int sms_len
Definition: gsm0808_utils.h:191
Definition: gsm_08_08.h:725
3GPP TS 48.008 3.2.2.104 Speech Codec.
Definition: gsm_08_08.h:593
Definition: gsm0808_utils.h:174
uint8_t talker_id[TALKER_IDENTITY_MAXLEN]
Definition: gsm0808_utils.h:175
unsigned int id_bits
Definition: gsm0808_utils.h:176
Packed representation of a VGCS Feature Flags IE (3GPP TS 48.008 3.2.2.88)
Definition: gsm0808_utils.h:82
Definition: gsm_04_08.h:603
Definition: gsm23003.h:37
Definition: gsm23003.h:29
Parsed representation of Global Call Reference, 3GPP TS 29.205 Table B 2.1.9.1.
Definition: gsm29205.h:29
Definition: gsm23003.h:54
LCLS-related parameters from 3GPP TS 48.008.
Definition: gsm0808_utils.h:226
enum gsm0808_lcls_control control
§3.2.2.117 Connection Status Control
Definition: gsm0808_utils.h:228
bool gcr_available
Definition: gsm0808_utils.h:230
struct osmo_gcr_parsed gcr
§3.2.2.115 Global Call Reference
Definition: gsm0808_utils.h:229
enum gsm0808_lcls_config config
§3.2.2.116 Configuration
Definition: gsm0808_utils.h:227
bool corr_needed
§3.2.2.118 Correlation-Not-Needed
Definition: gsm0808_utils.h:231
Definition: gsm23003.h:17
Definition: gsm23003.h:66
result of the TLV parser
Definition: tlv.h:532
Instead of this, use either struct gsm0808_cell_id or gsm0808_cell_id_list2.
Definition: gsm0808_utils.h:43
uint16_t lac
Definition: gsm0808_utils.h:48
struct osmo_cell_global_id_ps global_ps
Definition: gsm0808_utils.h:51
uint16_t ci
Definition: gsm0808_utils.h:46
struct osmo_cell_global_id global
Definition: gsm0808_utils.h:44
struct osmo_location_area_id lai_and_lac
Definition: gsm0808_utils.h:47
struct osmo_lac_and_ci_id lac_and_ci
Definition: gsm0808_utils.h:45
struct osmo_service_area_id sai
Definition: gsm0808_utils.h:49