diff options
author | gsmevent admin <admin@gsmevent.box> | 2019-08-17 21:43:07 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-08-20 04:45:19 +0200 |
commit | 9eb10efb237c58095eb8d4404d46f7986ee3d399 (patch) | |
tree | 7f6932b4a2326750cd863fc87238ed37d84230f3 | |
parent | 63450d990b6d17b6b2dd2e43c4a248e9008d436d (diff) |
send GMM_CAUSE_ROAMING_NOTALLOWED instead of GMM_CAUSE_IMSI_UNKNOWN HARDCODED
-rw-r--r-- | src/hlr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -259,7 +259,7 @@ static int rx_send_auth_info(struct osmo_gsup_conn *conn, break; case -ENOENT: LOGP(DAUC, LOGL_NOTICE, "%s: IMSI not known\n", gsup->imsi); - gsup_out.cause = GMM_CAUSE_IMSI_UNKNOWN; + gsup_out.cause = GMM_CAUSE_ROAMING_NOTALLOWED; break; default: LOGP(DAUC, LOGL_ERROR, "%s: failure to look up IMSI in db\n", gsup->imsi); @@ -378,7 +378,7 @@ static int rx_upd_loc_req(struct osmo_gsup_conn *conn, if (!lu_op_fill_subscr(luop, g_hlr->dbc, gsup->imsi)) { /* Send Error back: Subscriber Unknown in HLR */ osmo_strlcpy(luop->subscr.imsi, gsup->imsi, sizeof(luop->subscr.imsi)); - lu_op_tx_error(luop, GMM_CAUSE_IMSI_UNKNOWN); + lu_op_tx_error(luop, GMM_CAUSE_ROAMING_NOTALLOWED); return 0; } |