Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 1 | /* OsmoHLR SS/USSD implementation */ |
Harald Welte | 2c8bfe7 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 2 | |
| 3 | /* (C) 2018 Harald Welte <laforge@gnumonks.org> |
| 4 | * |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU Affero General Public License as published by |
| 9 | * the Free Software Foundation; either version 3 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU Affero General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Affero General Public License |
| 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | |
| 23 | #include <osmocom/core/talloc.h> |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 24 | #include <osmocom/core/timer.h> |
| 25 | #include <osmocom/gsm/gsup.h> |
| 26 | #include <osmocom/gsm/gsm0480.h> |
| 27 | #include <osmocom/gsm/protocol/gsm_04_80.h> |
Harald Welte | 2c8bfe7 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 28 | #include <stdint.h> |
| 29 | #include <string.h> |
| 30 | |
| 31 | #include "hlr.h" |
| 32 | #include "hlr_ussd.h" |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 33 | #include "gsup_server.h" |
| 34 | #include "gsup_router.h" |
| 35 | #include "logging.h" |
| 36 | |
| 37 | /*********************************************************************** |
| 38 | * core data structures expressing config from VTY |
| 39 | ***********************************************************************/ |
Harald Welte | 2c8bfe7 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 40 | |
| 41 | struct hlr_euse *euse_find(struct hlr *hlr, const char *name) |
| 42 | { |
| 43 | struct hlr_euse *euse; |
| 44 | |
| 45 | llist_for_each_entry(euse, &hlr->euse_list, list) { |
| 46 | if (!strcmp(euse->name, name)) |
| 47 | return euse; |
| 48 | } |
| 49 | return NULL; |
| 50 | } |
| 51 | |
| 52 | struct hlr_euse *euse_alloc(struct hlr *hlr, const char *name) |
| 53 | { |
| 54 | struct hlr_euse *euse = euse_find(hlr, name); |
| 55 | if (euse) |
| 56 | return NULL; |
| 57 | |
| 58 | euse = talloc_zero(hlr, struct hlr_euse); |
| 59 | euse->name = talloc_strdup(euse, name); |
| 60 | euse->hlr = hlr; |
| 61 | INIT_LLIST_HEAD(&euse->routes); |
| 62 | llist_add_tail(&euse->list, &hlr->euse_list); |
| 63 | |
| 64 | return euse; |
| 65 | } |
| 66 | |
| 67 | void euse_del(struct hlr_euse *euse) |
| 68 | { |
| 69 | llist_del(&euse->list); |
| 70 | talloc_free(euse); |
| 71 | } |
| 72 | |
| 73 | |
| 74 | struct hlr_euse_route *euse_route_find(struct hlr_euse *euse, const char *prefix) |
| 75 | { |
| 76 | struct hlr_euse_route *rt; |
| 77 | |
| 78 | llist_for_each_entry(rt, &euse->routes, list) { |
| 79 | if (!strcmp(rt->prefix, prefix)) |
| 80 | return rt; |
| 81 | } |
| 82 | return NULL; |
| 83 | } |
| 84 | |
| 85 | struct hlr_euse_route *euse_route_prefix_alloc(struct hlr_euse *euse, const char *prefix) |
| 86 | { |
| 87 | struct hlr_euse_route *rt; |
| 88 | |
| 89 | if (euse_route_find(euse, prefix)) |
| 90 | return NULL; |
| 91 | |
| 92 | rt = talloc_zero(euse, struct hlr_euse_route); |
| 93 | rt->prefix = talloc_strdup(rt, prefix); |
| 94 | rt->euse = euse; |
| 95 | llist_add_tail(&rt->list, &euse->routes); |
| 96 | |
| 97 | return rt; |
| 98 | } |
| 99 | |
| 100 | void euse_route_del(struct hlr_euse_route *rt) |
| 101 | { |
| 102 | llist_del(&rt->list); |
| 103 | talloc_free(rt); |
| 104 | } |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 105 | |
| 106 | struct hlr_euse *ussd_euse_find_7bit_gsm(struct hlr *hlr, const char *ussd_code) |
| 107 | { |
| 108 | struct hlr_euse *euse; |
| 109 | |
| 110 | llist_for_each_entry(euse, &hlr->euse_list, list) { |
| 111 | struct hlr_euse_route *rt; |
| 112 | llist_for_each_entry(rt, &euse->routes, list) { |
| 113 | if (!strncmp(ussd_code, rt->prefix, strlen(rt->prefix))) { |
| 114 | LOGP(DMAIN, LOGL_DEBUG, "Found EUSE %s (prefix %s) for USSD Code '%s'\n", |
| 115 | rt->euse->name, rt->prefix, ussd_code); |
| 116 | return rt->euse; |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | LOGP(DMAIN, LOGL_DEBUG, "Could not find Route/EUSE for USSD Code '%s'\n", ussd_code); |
| 122 | return NULL; |
| 123 | } |
| 124 | |
| 125 | /*********************************************************************** |
| 126 | * handling functions for individual GSUP messages |
| 127 | ***********************************************************************/ |
| 128 | |
Harald Welte | 3a19046 | 2018-07-29 12:28:11 +0200 | [diff] [blame] | 129 | #define LOGPSS(ss, lvl, fmt, args...) \ |
| 130 | LOGP(DMAIN, lvl, "%s/0x%08x: " fmt, (ss)->imsi, (ss)->session_id, ## args) |
| 131 | |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 132 | struct ss_session { |
| 133 | /* link us to hlr->ss_sessions */ |
| 134 | struct llist_head list; |
| 135 | /* imsi of this session */ |
| 136 | char imsi[GSM23003_IMSI_MAX_DIGITS+2]; |
| 137 | /* ID of this session (unique per IMSI) */ |
| 138 | uint32_t session_id; |
| 139 | /* state of the session */ |
| 140 | enum osmo_gsup_session_state state; |
| 141 | /* time-out when we will delete the session */ |
| 142 | struct osmo_timer_list timeout; |
| 143 | |
| 144 | /* external USSD Entity responsible for this session */ |
| 145 | struct hlr_euse *euse; |
| 146 | /* we don't keep a pointer to the osmo_gsup_{route,conn} towards the MSC/VLR here, |
| 147 | * as this might change during inter-VLR hand-over, and we simply look-up the serving MSC/VLR |
| 148 | * every time we receive an USSD component from the EUSE */ |
| 149 | }; |
| 150 | |
| 151 | struct ss_session *ss_session_find(struct hlr *hlr, const char *imsi, uint32_t session_id) |
| 152 | { |
| 153 | struct ss_session *ss; |
| 154 | llist_for_each_entry(ss, &hlr->ss_sessions, list) { |
| 155 | if (!strcmp(ss->imsi, imsi) && ss->session_id == session_id) |
| 156 | return ss; |
| 157 | } |
| 158 | return NULL; |
| 159 | } |
| 160 | |
| 161 | void ss_session_free(struct ss_session *ss) |
| 162 | { |
| 163 | osmo_timer_del(&ss->timeout); |
| 164 | llist_del(&ss->list); |
| 165 | talloc_free(ss); |
| 166 | } |
| 167 | |
| 168 | static void ss_session_timeout(void *data) |
| 169 | { |
| 170 | struct ss_session *ss = data; |
| 171 | |
Harald Welte | 3a19046 | 2018-07-29 12:28:11 +0200 | [diff] [blame] | 172 | LOGPSS(ss, LOGL_NOTICE, "SS Session Timeout, destroying\n"); |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 173 | /* FIXME: should we send a ReturnError component to the MS? */ |
| 174 | ss_session_free(ss); |
| 175 | } |
| 176 | |
| 177 | struct ss_session *ss_session_alloc(struct hlr *hlr, const char *imsi, uint32_t session_id) |
| 178 | { |
| 179 | struct ss_session *ss; |
| 180 | |
| 181 | OSMO_ASSERT(!ss_session_find(hlr, imsi, session_id)); |
| 182 | |
| 183 | ss = talloc_zero(hlr, struct ss_session); |
| 184 | OSMO_ASSERT(ss); |
| 185 | |
| 186 | OSMO_STRLCPY_ARRAY(ss->imsi, imsi); |
| 187 | ss->session_id = session_id; |
| 188 | osmo_timer_setup(&ss->timeout, ss_session_timeout, ss); |
| 189 | /* NOTE: The timeout is currently global and not refreshed with subsequent messages |
| 190 | * within the SS/USSD session. So 30s after the initial SS message, the session will |
| 191 | * timeout! */ |
| 192 | osmo_timer_schedule(&ss->timeout, 30, 0); |
| 193 | |
| 194 | llist_add_tail(&ss->list, &hlr->ss_sessions); |
| 195 | return ss; |
| 196 | } |
| 197 | |
| 198 | /*********************************************************************** |
Harald Welte | 7057711 | 2018-07-29 12:38:09 +0200 | [diff] [blame^] | 199 | * handling functions for encoding SS messages + wrapping them in GSUP |
| 200 | ***********************************************************************/ |
| 201 | |
| 202 | static int ss_tx_to_ms(struct ss_session *ss, enum osmo_gsup_message_type gsup_msg_type, |
| 203 | bool final, struct msgb *ss_msg) |
| 204 | |
| 205 | { |
| 206 | struct osmo_gsup_message resp = {0}; |
| 207 | struct msgb *resp_msg; |
| 208 | |
| 209 | resp.message_type = gsup_msg_type; |
| 210 | OSMO_STRLCPY_ARRAY(resp.imsi, ss->imsi); |
| 211 | if (final) |
| 212 | resp.session_state = OSMO_GSUP_SESSION_STATE_END; |
| 213 | else |
| 214 | resp.session_state = OSMO_GSUP_SESSION_STATE_CONTINUE; |
| 215 | resp.session_id = ss->session_id; |
| 216 | if (ss_msg) { |
| 217 | resp.ss_info = msgb_data(ss_msg); |
| 218 | resp.ss_info_len = msgb_length(ss_msg); |
| 219 | } |
| 220 | |
| 221 | resp_msg = gsm0480_msgb_alloc_name(__func__); |
| 222 | OSMO_ASSERT(resp_msg); |
| 223 | osmo_gsup_encode(resp_msg, &resp); |
| 224 | msgb_free(ss_msg); |
| 225 | |
| 226 | /* FIXME: resolve this based on the database vlr_addr */ |
| 227 | return osmo_gsup_addr_send(g_hlr->gs, (uint8_t *)"MSC-00-00-00-00-00-00", 22, resp_msg); |
| 228 | } |
| 229 | |
| 230 | #if 0 |
| 231 | static int ss_tx_reject(struct ss_session *ss, int invoke_id, uint8_t problem_tag, |
| 232 | uint8_t problem_code) |
| 233 | { |
| 234 | struct msgb *msg = gsm0480_gen_reject(invoke_id, problem_tag, problem_code); |
| 235 | LOGPSS(ss, LOGL_NOTICE, "Tx Reject(%u, 0x%02x, 0x%02x)\n", invoke_id, |
| 236 | problem_tag, problem_code); |
| 237 | OSMO_ASSERT(msg); |
| 238 | return ss_tx_to_ms(ss, OSMO_GSUP_MSGT_PROC_SS_RESULT, true, msg); |
| 239 | } |
| 240 | #endif |
| 241 | |
| 242 | static int ss_tx_error(struct ss_session *ss, uint8_t invoke_id, uint8_t error_code) |
| 243 | { |
| 244 | struct msgb *msg = gsm0480_gen_return_error(invoke_id, error_code); |
| 245 | LOGPSS(ss, LOGL_NOTICE, "Tx ReturnError(%u, 0x%02x)\n", invoke_id, error_code); |
| 246 | OSMO_ASSERT(msg); |
| 247 | return ss_tx_to_ms(ss, OSMO_GSUP_MSGT_PROC_SS_RESULT, true, msg); |
| 248 | } |
| 249 | |
| 250 | |
| 251 | |
| 252 | /*********************************************************************** |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 253 | * handling functions for individual GSUP messages |
| 254 | ***********************************************************************/ |
| 255 | |
| 256 | static bool ss_op_is_ussd(uint8_t opcode) |
| 257 | { |
| 258 | switch (opcode) { |
| 259 | case GSM0480_OP_CODE_PROCESS_USS_DATA: |
| 260 | case GSM0480_OP_CODE_PROCESS_USS_REQ: |
| 261 | case GSM0480_OP_CODE_USS_REQUEST: |
| 262 | case GSM0480_OP_CODE_USS_NOTIFY: |
| 263 | return true; |
| 264 | default: |
| 265 | return false; |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | /* is this GSUP connection an EUSE (true) or not (false)? */ |
| 270 | static bool conn_is_euse(struct osmo_gsup_conn *conn) |
| 271 | { |
| 272 | int rc; |
| 273 | uint8_t *addr; |
| 274 | |
| 275 | rc = osmo_gsup_conn_ccm_get(conn, &addr, IPAC_IDTAG_SERNR); |
| 276 | if (rc <= 5) |
| 277 | return false; |
| 278 | if (!strncmp((char *)addr, "EUSE-", 5)) |
| 279 | return true; |
| 280 | else |
| 281 | return false; |
| 282 | } |
| 283 | |
| 284 | static struct hlr_euse *euse_by_conn(struct osmo_gsup_conn *conn) |
| 285 | { |
| 286 | int rc; |
| 287 | char *addr; |
| 288 | struct hlr *hlr = conn->server->priv; |
| 289 | |
| 290 | rc = osmo_gsup_conn_ccm_get(conn, (uint8_t **) &addr, IPAC_IDTAG_SERNR); |
| 291 | if (rc <= 5) |
| 292 | return NULL; |
| 293 | if (strncmp(addr, "EUSE-", 5)) |
| 294 | return NULL; |
| 295 | |
| 296 | return euse_find(hlr, addr+5); |
| 297 | } |
| 298 | |
| 299 | static int handle_ss(struct ss_session *ss, const struct osmo_gsup_message *gsup, |
| 300 | const struct ss_request *req) |
| 301 | { |
| 302 | uint8_t comp_type = gsup->ss_info[0]; |
| 303 | |
| 304 | LOGP(DMAIN, LOGL_INFO, "%s: SS CompType=%s, OpCode=%s\n", gsup->imsi, |
| 305 | gsm0480_comp_type_name(comp_type), gsm0480_op_code_name(req->opcode)); |
| 306 | /* FIXME */ |
| 307 | return 0; |
| 308 | } |
| 309 | |
| 310 | static int handle_ussd(struct osmo_gsup_conn *conn, struct ss_session *ss, |
| 311 | const struct osmo_gsup_message *gsup, const struct ss_request *req) |
| 312 | { |
| 313 | uint8_t comp_type = gsup->ss_info[0]; |
| 314 | struct msgb *msg_out; |
| 315 | bool is_euse_originated = conn_is_euse(conn); |
| 316 | |
| 317 | LOGP(DMAIN, LOGL_INFO, "%s: USSD CompType=%s, OpCode=%s '%s'\n", gsup->imsi, |
| 318 | gsm0480_comp_type_name(comp_type), gsm0480_op_code_name(req->opcode), |
| 319 | req->ussd_text); |
| 320 | |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 321 | |
| 322 | if (!ss->euse) { |
| 323 | LOGP(DMAIN, LOGL_NOTICE, "%s: USSD for unknown code '%s'\n", gsup->imsi, req->ussd_text); |
Harald Welte | 7057711 | 2018-07-29 12:38:09 +0200 | [diff] [blame^] | 324 | ss_tx_error(ss, req->invoke_id, GSM0480_ERR_CODE_SS_NOT_AVAILABLE); |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 325 | return 0; |
| 326 | } |
| 327 | |
| 328 | if (is_euse_originated) { |
Harald Welte | 7057711 | 2018-07-29 12:38:09 +0200 | [diff] [blame^] | 329 | msg_out = msgb_alloc_headroom(1024+16, 16, "GSUP USSD FW"); |
| 330 | OSMO_ASSERT(msg_out); |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 331 | /* Received from EUSE, Forward to VLR */ |
| 332 | osmo_gsup_encode(msg_out, gsup); |
| 333 | /* FIXME: resolve this based on the database vlr_addr */ |
| 334 | osmo_gsup_addr_send(conn->server, (uint8_t *)"MSC-00-00-00-00-00-00", 22, msg_out); |
| 335 | } else { |
| 336 | /* Received from VLR, Forward to EUSE */ |
| 337 | char addr[128]; |
| 338 | strcpy(addr, "EUSE-"); |
| 339 | osmo_strlcpy(addr+5, ss->euse->name, sizeof(addr)-5); |
| 340 | conn = gsup_route_find(conn->server, (uint8_t *)addr, strlen(addr)+1); |
| 341 | if (!conn) { |
| 342 | LOGP(DMAIN, LOGL_ERROR, "Cannot find conn for EUSE %s\n", addr); |
Harald Welte | 7057711 | 2018-07-29 12:38:09 +0200 | [diff] [blame^] | 343 | ss_tx_error(ss, req->invoke_id, GSM0480_ERR_CODE_SYSTEM_FAILURE); |
| 344 | } else { |
| 345 | msg_out = msgb_alloc_headroom(1024+16, 16, "GSUP USSD FW"); |
| 346 | OSMO_ASSERT(msg_out); |
| 347 | osmo_gsup_encode(msg_out, gsup); |
| 348 | osmo_gsup_conn_send(conn, msg_out); |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 349 | } |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 350 | } |
| 351 | |
| 352 | return 0; |
| 353 | } |
| 354 | |
| 355 | |
| 356 | /* this function is called for any SS_REQ/SS_RESP messages from both the MSC/VLR side as well |
| 357 | * as from the EUSE side */ |
| 358 | int rx_proc_ss_req(struct osmo_gsup_conn *conn, const struct osmo_gsup_message *gsup) |
| 359 | { |
| 360 | struct hlr *hlr = conn->server->priv; |
| 361 | struct ss_session *ss; |
| 362 | struct ss_request req = {0}; |
| 363 | |
| 364 | LOGP(DMAIN, LOGL_INFO, "%s: Process SS (0x%08x, %s)\n", gsup->imsi, gsup->session_id, |
| 365 | osmo_gsup_session_state_name(gsup->session_state)); |
| 366 | |
| 367 | /* decode and find out what kind of SS message it is */ |
| 368 | if (gsup->ss_info && gsup->ss_info_len) { |
| 369 | if (gsm0480_parse_facility_ie(gsup->ss_info, gsup->ss_info_len, &req)) { |
| 370 | LOGP(DMAIN, LOGL_ERROR, "%s: Unable to parse SS request for 0x%08x: %s\n", |
| 371 | gsup->imsi, gsup->session_id, |
| 372 | osmo_hexdump(gsup->ss_info, gsup->ss_info_len)); |
Harald Welte | 7057711 | 2018-07-29 12:38:09 +0200 | [diff] [blame^] | 373 | /* FIXME: Send a Reject component? */ |
Harald Welte | f76578d | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 374 | goto out_err; |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | switch (gsup->session_state) { |
| 379 | case OSMO_GSUP_SESSION_STATE_BEGIN: |
| 380 | /* Check for overlapping Session ID usage */ |
| 381 | if (ss_session_find(hlr, gsup->imsi, gsup->session_id)) { |
| 382 | LOGP(DMAIN, LOGL_ERROR, "%s/0x%08x: BEGIN with non-uinque session ID!\n", |
| 383 | gsup->imsi, gsup->session_id); |
| 384 | goto out_err; |
| 385 | } |
| 386 | ss = ss_session_alloc(hlr, gsup->imsi, gsup->session_id); |
| 387 | if (!ss) { |
| 388 | LOGP(DMAIN, LOGL_ERROR, "%s: Unable to allocate SS session for 0x%08x\n", |
| 389 | gsup->imsi, gsup->session_id); |
| 390 | goto out_err; |
| 391 | } |
| 392 | if (ss_op_is_ussd(req.opcode)) { |
| 393 | if (conn_is_euse(conn)) { |
| 394 | /* EUSE->VLR: MT USSD. EUSE is known ('conn'), VLR is to be resolved */ |
| 395 | ss->euse = euse_by_conn(conn); |
| 396 | } else { |
| 397 | /* VLR->EUSE: MO USSD. VLR is known ('conn'), EUSE is to be resolved */ |
| 398 | ss->euse = ussd_euse_find_7bit_gsm(hlr, (const char *) req.ussd_text); |
| 399 | } |
| 400 | /* dispatch unstructured SS to routing */ |
| 401 | handle_ussd(conn, ss, gsup, &req); |
| 402 | } else { |
| 403 | /* dispatch non-call SS to internal code */ |
| 404 | handle_ss(ss, gsup, &req); |
| 405 | } |
| 406 | break; |
| 407 | case OSMO_GSUP_SESSION_STATE_CONTINUE: |
| 408 | ss = ss_session_find(hlr, gsup->imsi, gsup->session_id); |
| 409 | if (!ss) { |
| 410 | LOGP(DMAIN, LOGL_ERROR, "%s: CONTINUE for unknwon SS session 0x%08x\n", |
| 411 | gsup->imsi, gsup->session_id); |
| 412 | goto out_err; |
| 413 | } |
| 414 | if (ss_op_is_ussd(req.opcode)) { |
| 415 | /* dispatch unstructured SS to routing */ |
| 416 | handle_ussd(conn, ss, gsup, &req); |
| 417 | } else { |
| 418 | /* dispatch non-call SS to internal code */ |
| 419 | handle_ss(ss, gsup, &req); |
| 420 | } |
| 421 | break; |
| 422 | case OSMO_GSUP_SESSION_STATE_END: |
| 423 | ss = ss_session_find(hlr, gsup->imsi, gsup->session_id); |
| 424 | if (!ss) { |
| 425 | LOGP(DMAIN, LOGL_ERROR, "%s: END for unknwon SS session 0x%08x\n", |
| 426 | gsup->imsi, gsup->session_id); |
| 427 | goto out_err; |
| 428 | } |
| 429 | if (ss_op_is_ussd(req.opcode)) { |
| 430 | /* dispatch unstructured SS to routing */ |
| 431 | handle_ussd(conn, ss, gsup, &req); |
| 432 | } else { |
| 433 | /* dispatch non-call SS to internal code */ |
| 434 | handle_ss(ss, gsup, &req); |
| 435 | } |
| 436 | ss_session_free(ss); |
| 437 | break; |
| 438 | default: |
| 439 | LOGP(DMAIN, LOGL_ERROR, "%s: Unknown SS State %d\n", gsup->imsi, gsup->session_state); |
| 440 | goto out_err; |
| 441 | } |
| 442 | |
| 443 | return 0; |
| 444 | |
| 445 | out_err: |
| 446 | return 0; |
| 447 | } |
| 448 | |
| 449 | int rx_proc_ss_error(struct osmo_gsup_conn *conn, const struct osmo_gsup_message *gsup) |
| 450 | { |
| 451 | LOGP(DMAIN, LOGL_NOTICE, "%s: Process SS ERROR (0x%08x, %s)\n", gsup->imsi, gsup->session_id, |
| 452 | osmo_gsup_session_state_name(gsup->session_state)); |
| 453 | return 0; |
| 454 | } |