blob: 6f0aca4b16b0498ee48cc856a68d524289622273 [file] [log] [blame]
Harald Welte52b1f982008-12-23 20:25:15 +00001#ifndef _GSM_DATA_H
2#define _GSM_DATA_H
3
Harald Weltef142c972011-05-24 13:25:38 +02004#include <stdint.h>
Maxddee01f2016-05-24 14:23:27 +02005#include <regex.h>
6#include <sys/types.h>
Maxe6052c42016-06-30 10:25:49 +02007#include <stdbool.h>
Harald Weltef142c972011-05-24 13:25:38 +02008
9#include <osmocom/core/timer.h>
Alexander Couzens20423ea2016-07-12 15:42:02 +020010#include <osmocom/core/rate_ctr.h>
Harald Welte6be350c2011-05-25 13:10:08 +020011#include <osmocom/core/select.h>
Alexander Couzens20423ea2016-07-12 15:42:02 +020012#include <osmocom/core/stats.h>
Max43b01b02017-09-15 11:22:30 +020013#include <osmocom/gsm/gsm48.h>
Harald Welte121e9a42016-04-20 13:13:19 +020014#include <osmocom/crypt/auth.h>
Philipp Maierfbf66102017-04-09 12:32:51 +020015#include <osmocom/sigtran/sccp_sap.h>
Harald Weltef142c972011-05-24 13:25:38 +020016
Neels Hofmeyr90843962017-09-04 15:04:35 +020017#include <osmocom/msc/common.h>
Neels Hofmeyr90843962017-09-04 15:04:35 +020018#include <osmocom/msc/common_cs.h>
Neels Hofmeyr6c8afe12017-09-04 01:03:58 +020019#include <osmocom/mgcp_client/mgcp_client.h>
Harald Welteb96be392011-05-25 12:33:33 +020020
Harald Welted35038d2018-01-25 00:07:33 +010021#include "gsm_data_shared.h"
22
Harald Welte0e2fa5d2018-04-09 16:35:01 +020023/* TS 48.008 DLCI containing DCCH/ACCH + SAPI */
24#define OMSC_LINKID_CB(__msgb) (__msgb)->cb[3]
Philipp Maierfbf66102017-04-09 12:32:51 +020025
Holger Hans Peter Freytherd7b22c62013-04-29 09:11:02 +020026/** annotations for msgb ownership */
27#define __uses
28
Holger Hans Peter Freyther694c82d2011-10-26 18:37:09 +020029struct mncc_sock_state;
Harald Welte2483f1b2016-06-19 18:06:02 +020030struct vlr_instance;
31struct vlr_subscr;
Neels Hofmeyr00e82d62017-07-05 15:19:52 +020032struct ranap_ue_conn_ctx;
Holger Hans Peter Freyther694c82d2011-10-26 18:37:09 +020033
Neels Hofmeyr0e5d8072017-01-10 00:49:56 +010034#define tmsi_from_string(str) strtoul(str, NULL, 10)
35
Harald Welte8e1e3ee2009-02-01 13:32:45 +000036struct msgb;
37typedef int gsm_cbfn(unsigned int hooknum,
38 unsigned int event,
39 struct msgb *msg,
40 void *data, void *param);
41
Sylvain Munaut47193072009-12-27 21:56:14 +010042struct gsm_auth_tuple {
43 int use_count;
44 int key_seq;
Harald Welte121e9a42016-04-20 13:13:19 +020045 struct osmo_auth_vector vec;
Sylvain Munaut47193072009-12-27 21:56:14 +010046};
Sylvain Munautb48216f2010-06-09 12:45:37 +020047#define GSM_KEY_SEQ_INVAL 7 /* GSM 04.08 - 10.5.1.2 */
Sylvain Munaut47193072009-12-27 21:56:14 +010048
Neels Hofmeyrd3270a92017-02-02 01:07:28 +010049enum ran_type {
50 RAN_UNKNOWN,
51 RAN_GERAN_A, /* 2G / A-interface */
52 RAN_UTRAN_IU, /* 3G / Iu-interface (IuCS or IuPS) */
53};
54
Neels Hofmeyr84da6b12016-05-20 21:59:55 +020055extern const struct value_string ran_type_names[];
56static inline const char *ran_type_name(enum ran_type val)
57{ return get_value_string(ran_type_names, val); }
58
Harald Welte2483f1b2016-06-19 18:06:02 +020059struct gsm_classmark {
60 bool classmark1_set;
61 struct gsm48_classmark1 classmark1;
62 uint8_t classmark2_len;
63 uint8_t classmark2[3];
64 uint8_t classmark3_len;
65 uint8_t classmark3[14]; /* if cm3 gets extended by spec, it will be truncated */
66};
67
Neels Hofmeyre2f24d52017-05-08 15:12:20 +020068enum integrity_protection_state {
69 INTEGRITY_PROTECTION_NONE = 0,
70 INTEGRITY_PROTECTION_IK = 1,
71 INTEGRITY_PROTECTION_IK_CK = 2,
72};
73
Neels Hofmeyr16c42b52018-04-02 12:26:16 +020074enum complete_layer3_type {
75 COMPLETE_LAYER3_NONE,
76 COMPLETE_LAYER3_LU,
77 COMPLETE_LAYER3_CM_SERVICE_REQ,
78 COMPLETE_LAYER3_PAGING_RESP,
79};
80
81extern const struct value_string complete_layer3_type_names[];
82static inline const char *complete_layer3_type_name(enum complete_layer3_type val)
83{
84 return get_value_string(complete_layer3_type_names, val);
85}
86
Neels Hofmeyr378a4922016-05-09 21:07:43 +020087/* active radio connection of a mobile subscriber */
Holger Hans Peter Freyther68884aa2010-03-23 06:41:45 +010088struct gsm_subscriber_connection {
Harald Welte2483f1b2016-06-19 18:06:02 +020089 /* global linked list of subscriber_connections */
Holger Hans Peter Freyther79f763f2010-09-16 00:53:37 +080090 struct llist_head entry;
91
Neels Hofmeyr4d3a66b2018-03-31 18:45:59 +020092 /* FSM instance to control the subscriber connection's permissions and lifetime. */
93 struct osmo_fsm_inst *fi;
Neels Hofmeyr16c42b52018-04-02 12:26:16 +020094 enum complete_layer3_type complete_layer3_type;
Neels Hofmeyr4d3a66b2018-03-31 18:45:59 +020095
Harald Welte2483f1b2016-06-19 18:06:02 +020096 /* usage count. If this drops to zero, we start the release
97 * towards A/Iu */
98 uint32_t use_count;
Neels Hofmeyr6166f292017-11-22 14:33:12 +010099 uint32_t use_tokens;
Holger Hans Peter Freyther68884aa2010-03-23 06:41:45 +0100100
Harald Welte2483f1b2016-06-19 18:06:02 +0200101 /* The MS has opened the conn with a CM Service Request, and we shall
102 * keep it open for an actual request (or until timeout). */
103 bool received_cm_service_request;
104
Harald Welte2483f1b2016-06-19 18:06:02 +0200105 /* libmsc/libvlr subscriber information (if available) */
106 struct vlr_subscr *vsub;
107
Holger Hans Peter Freythere7bd8632013-06-30 15:30:47 +0200108 /* LU expiration handling */
109 uint8_t expire_timer_stopped;
Holger Hans Peter Freytherca114432014-02-08 15:20:48 +0100110 /* SMS helpers for libmsc */
111 uint8_t next_rp_ref;
Holger Hans Peter Freythere7bd8632013-06-30 15:30:47 +0200112
Holger Hans Peter Freyther68884aa2010-03-23 06:41:45 +0100113 /* Are we part of a special "silent" call */
114 int silent_call;
115
Holger Hans Peter Freytherc8a6c132015-08-04 13:32:09 +0200116 /* MNCC rtp bridge markers */
117 int mncc_rtp_bridge;
Holger Hans Peter Freytherc8a6c132015-08-04 13:32:09 +0200118
Holger Hans Peter Freyther18b63f42010-03-23 07:52:17 +0100119 /* back pointers */
Neels Hofmeyr5e0b0a62016-05-09 22:33:01 +0200120 struct gsm_network *network;
121
Harald Welte2483f1b2016-06-19 18:06:02 +0200122 bool in_release;
Holger Hans Peter Freyther77cd95d2010-11-14 16:19:48 +0100123
Neels Hofmeyrd3270a92017-02-02 01:07:28 +0100124 /* connected via 2G or 3G? */
125 enum ran_type via_ran;
Harald Welte2483f1b2016-06-19 18:06:02 +0200126
127 struct gsm_classmark classmark;
Neels Hofmeyre2f24d52017-05-08 15:12:20 +0200128
129 uint16_t lac;
130 struct gsm_encr encr;
131
Harald Weltec2007852018-02-03 21:08:26 +0100132 /* N(SD) expected in the received frame, per flow (TS 24.007 11.2.3.2.3.2.2) */
133 uint8_t n_sd_next[4];
134
Philipp Maierfbf66102017-04-09 12:32:51 +0200135 struct {
Philipp Maier621ba032017-11-07 17:19:25 +0100136 struct mgcp_ctx *mgcp_ctx;
Philipp Maierfbf66102017-04-09 12:32:51 +0200137 unsigned int mgcp_rtp_endpoint;
Philipp Maier621ba032017-11-07 17:19:25 +0100138
139 uint16_t local_port_ran;
140 char local_addr_ran[INET_ADDRSTRLEN];
141 uint16_t remote_port_ran;
142 char remote_addr_ran[INET_ADDRSTRLEN];
143 uint16_t local_port_cn;
144 char local_addr_cn[INET_ADDRSTRLEN];
145 uint16_t remote_port_cn;
146 char remote_addr_cn[INET_ADDRSTRLEN];
Philipp Maierfbf66102017-04-09 12:32:51 +0200147 } rtp;
148
Neels Hofmeyre2f24d52017-05-08 15:12:20 +0200149 /* which Iu-CS connection, if any. */
150 struct {
Neels Hofmeyr00e82d62017-07-05 15:19:52 +0200151 struct ranap_ue_conn_ctx *ue_ctx;
Neels Hofmeyr84da6b12016-05-20 21:59:55 +0200152 uint8_t rab_id;
Neels Hofmeyre2f24d52017-05-08 15:12:20 +0200153 } iu;
Philipp Maierfbf66102017-04-09 12:32:51 +0200154
155 struct {
156 /* A pointer to the SCCP user that handles
157 * the SCCP connections for this subscriber
158 * connection */
159 struct osmo_sccp_user *scu;
160
161 /* The address of the BSC that is associated
162 * with this subscriber connection */
163 struct osmo_sccp_addr bsc_addr;
164
165 /* The connection identifier that is used
166 * to reference the SCCP connection that is
167 * associated with this subscriber connection */
Philipp Maier64dbc542018-01-30 11:38:59 +0100168 uint32_t conn_id;
Philipp Maierfbf66102017-04-09 12:32:51 +0200169 } a;
Holger Hans Peter Freyther68884aa2010-03-23 06:41:45 +0100170};
171
Harald Weltef142c972011-05-24 13:25:38 +0200172
Alexander Couzensb847a212016-08-02 11:34:11 +0200173enum {
Alexander Couzens20423ea2016-07-12 15:42:02 +0200174 MSC_CTR_LOC_UPDATE_TYPE_ATTACH,
175 MSC_CTR_LOC_UPDATE_TYPE_NORMAL,
176 MSC_CTR_LOC_UPDATE_TYPE_PERIODIC,
177 MSC_CTR_LOC_UPDATE_TYPE_DETACH,
Neels Hofmeyr36891a72016-05-09 13:18:03 +0200178 MSC_CTR_LOC_UPDATE_FAILED,
179 MSC_CTR_LOC_UPDATE_COMPLETED,
Alexander Couzens20423ea2016-07-12 15:42:02 +0200180 MSC_CTR_SMS_SUBMITTED,
181 MSC_CTR_SMS_NO_RECEIVER,
182 MSC_CTR_SMS_DELIVERED,
183 MSC_CTR_SMS_RP_ERR_MEM,
184 MSC_CTR_SMS_RP_ERR_OTHER,
Alexander Couzensaa386d22016-08-21 20:16:33 +0200185 MSC_CTR_SMS_DELIVER_UNKNOWN_ERROR,
Alexander Couzens20423ea2016-07-12 15:42:02 +0200186 MSC_CTR_CALL_MO_SETUP,
187 MSC_CTR_CALL_MO_CONNECT_ACK,
188 MSC_CTR_CALL_MT_SETUP,
189 MSC_CTR_CALL_MT_CONNECT,
Alexander Couzens92f552f2016-08-23 07:32:27 +0200190 MSC_CTR_CALL_ACTIVE,
191 MSC_CTR_CALL_COMPLETE,
192 MSC_CTR_CALL_INCOMPLETE,
Alexander Couzens20423ea2016-07-12 15:42:02 +0200193};
194
195static const struct rate_ctr_desc msc_ctr_description[] = {
Neels Hofmeyrc6bf2742017-11-18 23:22:17 +0100196 [MSC_CTR_LOC_UPDATE_TYPE_ATTACH] = {"loc_update_type:attach", "Received location update imsi attach requests."},
197 [MSC_CTR_LOC_UPDATE_TYPE_NORMAL] = {"loc_update_type:normal", "Received location update normal requests."},
198 [MSC_CTR_LOC_UPDATE_TYPE_PERIODIC] = {"loc_update_type:periodic", "Received location update periodic requests."},
199 [MSC_CTR_LOC_UPDATE_TYPE_DETACH] = {"loc_update_type:detach", "Received location update detach indication."},
200 [MSC_CTR_LOC_UPDATE_FAILED] = {"loc_update_resp:failed", "Rejected location updates."},
201 [MSC_CTR_LOC_UPDATE_COMPLETED] = {"loc_update_resp:completed", "Successful location updates."},
202 [MSC_CTR_SMS_SUBMITTED] = {"sms:submitted", "Received a RPDU from a MS (MO)."},
203 [MSC_CTR_SMS_NO_RECEIVER] = {"sms:no_receiver", "Counts SMS which couldn't routed because no receiver found."},
204 [MSC_CTR_SMS_DELIVERED] = {"sms:delivered", "Global SMS Deliver attempts."},
205 [MSC_CTR_SMS_RP_ERR_MEM] = {"sms:rp_err_mem", "CAUSE_MT_MEM_EXCEEDED errors of MS responses on a sms deliver attempt."},
206 [MSC_CTR_SMS_RP_ERR_OTHER] = {"sms:rp_err_other", "Other error of MS responses on a sms delive attempt."},
207 [MSC_CTR_SMS_DELIVER_UNKNOWN_ERROR] = {"sms:deliver_unknown_error", "Unknown error occured during sms delivery."},
Alexander Couzens20423ea2016-07-12 15:42:02 +0200208 /* FIXME: count also sms delivered */
Neels Hofmeyrc6bf2742017-11-18 23:22:17 +0100209 [MSC_CTR_CALL_MO_SETUP] = {"call:mo_setup", "Received setup requests from a MS to init a MO call."},
210 [MSC_CTR_CALL_MO_CONNECT_ACK] = {"call:mo_connect_ack", "Received a connect ack from MS of a MO call. Call is now succesful connected up."},
211 [MSC_CTR_CALL_MT_SETUP] = {"call:mt_setup", "Sent setup requests to the MS (MT)."},
212 [MSC_CTR_CALL_MT_CONNECT] = {"call:mt_connect", "Sent a connect to the MS (MT)."},
213 [MSC_CTR_CALL_ACTIVE] = {"call:active", "Count total amount of calls that ever reached active state."},
214 [MSC_CTR_CALL_COMPLETE] = {"call:complete", "Count total amount of calls which got terminated by disconnect req or ind after reaching active state."},
215 [MSC_CTR_CALL_INCOMPLETE] = {"call:incomplete", "Count total amount of call which got terminated by any other reason after reaching active state."},
Alexander Couzensb847a212016-08-02 11:34:11 +0200216};
217
Alexander Couzens20423ea2016-07-12 15:42:02 +0200218static const struct rate_ctr_group_desc msc_ctrg_desc = {
219 "msc",
220 "mobile switching center",
221 OSMO_STATS_CLASS_GLOBAL,
222 ARRAY_SIZE(msc_ctr_description),
223 msc_ctr_description,
Harald Welte24ff6ee2009-12-22 00:41:05 +0100224};
225
Neels Hofmeyr2ff5bcd2017-12-15 03:02:27 +0100226#define MSC_PAGING_RESPONSE_TIMER_DEFAULT 10
Harald Welteb84ddfc2009-12-01 17:36:54 +0530227
Neels Hofmeyr73983952016-05-10 13:29:33 +0200228struct gsm_tz {
229 int override; /* if 0, use system's time zone instead. */
230 int hr; /* hour */
231 int mn; /* minute */
232 int dst; /* daylight savings */
233};
234
Harald Welte52b1f982008-12-23 20:25:15 +0000235struct gsm_network {
Neels Hofmeyre2f24d52017-05-08 15:12:20 +0200236 /* TODO MSCSPLIT the gsm_network struct is basically a kitchen sink for
237 * global settings and variables, "madly" mixing BSC and MSC stuff. Split
238 * this in e.g. struct osmo_bsc and struct osmo_msc, with the things
239 * these have in common, like country and network code, put in yet
240 * separate structs and placed as members in osmo_bsc and osmo_msc. */
241
Neels Hofmeyr379d5792018-02-22 04:04:54 +0100242 struct osmo_plmn_id plmn;
243
Harald Weltec6ba9c22008-12-30 18:01:02 +0000244 char *name_long;
245 char *name_short;
Neels Hofmeyr379d5792018-02-22 04:04:54 +0100246
Harald Welte7b222aa2017-12-23 19:30:32 +0100247 /* bit-mask of permitted encryption algorithms. LSB=A5/0, MSB=A5/7 */
248 uint8_t a5_encryption_mask;
Harald Welte2483f1b2016-06-19 18:06:02 +0200249 bool authentication_required;
Harald Welte648b6ce2009-12-14 09:00:24 +0100250 int send_mm_info;
Harald Weltebc814502009-12-19 21:41:52 +0100251 struct {
252 int active;
253 } handover;
Harald Welte52b1f982008-12-23 20:25:15 +0000254
Alexander Couzensb847a212016-08-02 11:34:11 +0200255 struct rate_ctr_group *msc_ctrs;
Alexander Couzens92f552f2016-08-23 07:32:27 +0200256 struct osmo_counter *active_calls;
Harald Welte24ff6ee2009-12-22 00:41:05 +0100257
Harald Welte4bfdfe72009-06-10 23:11:52 +0800258 /* layer 4 */
Holger Hans Peter Freyther694c82d2011-10-26 18:37:09 +0200259 struct mncc_sock_state *mncc_state;
Neels Hofmeyr402006d2016-05-11 14:28:25 +0200260 mncc_recv_cb_t mncc_recv;
Harald Welte4bfdfe72009-06-10 23:11:52 +0800261 struct llist_head upqueue;
Neels Hofmeyr84da6b12016-05-20 21:59:55 +0200262 /*
263 * TODO: Move the trans_list into the subscriber connection and
264 * create a pending list for MT transactions. These exist before
265 * we have a subscriber connection.
266 */
Harald Welte4bfdfe72009-06-10 23:11:52 +0800267 struct llist_head trans_list;
268
Neels Hofmeyr2ff5bcd2017-12-15 03:02:27 +0100269 unsigned int paging_response_timer;
Harald Welteeab84a12009-12-13 10:53:12 +0100270
271 /* Radio Resource Location Protocol (TS 04.31) */
272 struct {
273 enum rrlp_mode mode;
274 } rrlp;
Holger Hans Peter Freyther5a3a61d2010-09-06 09:25:48 +0800275
Holger Hans Peter Freyther11b28f92010-12-24 13:48:27 +0100276 struct gsm_sms_queue *sms_queue;
Daniel Willmann6fc4a982011-07-22 17:55:42 +0200277
278 /* control interface */
279 struct ctrl_handle *ctrl;
Neels Hofmeyr5f0c71b2016-07-23 20:15:28 +0200280
Neels Hofmeyrd90fa422016-05-09 21:03:12 +0200281 /* all active subscriber connections. */
282 struct llist_head subscr_conns;
Neels Hofmeyr73983952016-05-10 13:29:33 +0200283
284 /* if override is nonzero, this timezone data is used for all MM
285 * contexts. */
286 /* TODO: in OsmoNITB, tz-override used to be BTS-specific. To enable
287 * BTS|RNC specific timezone overrides for multi-tz networks in
Neels Hofmeyrfe291de2017-02-23 21:06:12 +0100288 * OsmoMSC, this should be tied to the location area code (LAC). */
Neels Hofmeyr73983952016-05-10 13:29:33 +0200289 struct gsm_tz tz;
Neels Hofmeyr6d804b12017-02-18 22:20:46 +0100290
Harald Welte2483f1b2016-06-19 18:06:02 +0200291 /* MSC: GSUP server address of the HLR */
292 const char *gsup_server_addr_str;
293 uint16_t gsup_server_port;
294
295 struct vlr_instance *vlr;
Neels Hofmeyre2f24d52017-05-08 15:12:20 +0200296
297 /* Periodic location update default value */
298 uint8_t t3212;
Neels Hofmeyr84da6b12016-05-20 21:59:55 +0200299
300 struct {
Neels Hofmeyr6c8afe12017-09-04 01:03:58 +0200301 struct mgcp_client_conf conf;
302 struct mgcp_client *client;
303 } mgw;
Neels Hofmeyr84da6b12016-05-20 21:59:55 +0200304
305 struct {
Philipp Maierfbf66102017-04-09 12:32:51 +0200306 /* CS7 instance id number (set via VTY) */
307 uint32_t cs7_instance;
Neels Hofmeyr00e82d62017-07-05 15:19:52 +0200308 int rab_assign_addr_enc;
Philipp Maierfbf66102017-04-09 12:32:51 +0200309 struct osmo_sccp_instance *sccp;
Neels Hofmeyr84da6b12016-05-20 21:59:55 +0200310 } iu;
Philipp Maierfbf66102017-04-09 12:32:51 +0200311
312 struct {
313 /* CS7 instance id number (set via VTY) */
314 uint32_t cs7_instance;
315 /* A list with the context information about
316 * all BSCs we have connections with */
317 struct llist_head bscs;
318 struct osmo_sccp_instance *sccp;
319 } a;
Harald Welte69c54a82018-02-09 20:41:14 +0100320
321 struct {
322 /* MSISDN to which to route MO emergency calls */
323 char *route_to_msisdn;
324 } emergency;
Harald Welte52b1f982008-12-23 20:25:15 +0000325};
326
Harald Welted4bdee72012-11-08 19:44:08 +0100327struct osmo_esme;
328
329enum gsm_sms_source_id {
330 SMS_SOURCE_UNKNOWN = 0,
331 SMS_SOURCE_MS, /* received from MS */
332 SMS_SOURCE_VTY, /* received from VTY */
333 SMS_SOURCE_SMPP, /* received via SMPP */
334};
335
Harald Welte7e310b12009-03-30 20:56:32 +0000336#define SMS_HDR_SIZE 128
337#define SMS_TEXT_SIZE 256
Harald Weltee07b6a72012-11-23 19:02:37 +0100338
339struct gsm_sms_addr {
340 uint8_t ton;
341 uint8_t npi;
342 char addr[21+1];
343};
344
Harald Welte7e310b12009-03-30 20:56:32 +0000345struct gsm_sms {
Harald Welted409be72009-11-07 00:06:19 +0900346 unsigned long long id;
Harald Welte2483f1b2016-06-19 18:06:02 +0200347 struct vlr_subscr *receiver;
Harald Weltec0de14d2012-11-23 23:35:01 +0100348 struct gsm_sms_addr src, dst;
Harald Welted4bdee72012-11-08 19:44:08 +0100349 enum gsm_sms_source_id source;
350
351 struct {
Pablo Neira Ayuso93ffbd02017-05-04 18:44:22 +0200352 uint8_t transaction_id;
353 uint32_t msg_ref;
354 } gsm411;
355
356 struct {
Harald Welted4bdee72012-11-08 19:44:08 +0100357 struct osmo_esme *esme;
358 uint32_t sequence_nr;
359 int transaction_mode;
360 char msg_id[16];
361 } smpp;
Harald Welte7e310b12009-03-30 20:56:32 +0000362
Harald Welteb9c758b2009-07-05 14:02:46 +0200363 unsigned long validity_minutes;
Keithc601adc2017-08-16 22:45:07 +0200364 time_t created;
Pablo Neira Ayusoadae8592017-08-07 14:01:30 +0100365 bool is_report;
Holger Hans Peter Freytherc42ad8b2011-04-18 17:04:00 +0200366 uint8_t reply_path_req;
367 uint8_t status_rep_req;
368 uint8_t ud_hdr_ind;
369 uint8_t protocol_id;
370 uint8_t data_coding_scheme;
371 uint8_t msg_ref;
Holger Hans Peter Freytherc42ad8b2011-04-18 17:04:00 +0200372 uint8_t user_data_len;
373 uint8_t user_data[SMS_TEXT_SIZE];
Harald Weltef3efc592009-07-27 20:11:35 +0200374
Harald Welte7e310b12009-03-30 20:56:32 +0000375 char text[SMS_TEXT_SIZE];
376};
377
Neels Hofmeyr42eb0142016-05-20 17:15:44 +0200378void msc_subscr_con_free(struct gsm_subscriber_connection *conn);
Holger Hans Peter Freyther2412a072010-06-28 15:47:12 +0800379
Holger Hans Peter Freytherf8c42192013-01-09 17:03:27 +0100380/* control interface handling */
381int bsc_base_ctrl_cmds_install(void);
Harald Welte2483f1b2016-06-19 18:06:02 +0200382int msc_ctrl_cmds_install(struct gsm_network *net);
Holger Hans Peter Freytherf8c42192013-01-09 17:03:27 +0100383
Harald Welte6be350c2011-05-25 13:10:08 +0200384#endif /* _GSM_DATA_H */