Harald Welte has uploaded this change for review. (
https://gerrit.osmocom.org/9723
Change subject: Store identity of VLR/SGSN in UpdateLocation
..
Store identity of VLR/SGSN in UpdateLocation
The HLR must store the least-recently used VLR and SGSN identities in
its database to ensure subsequent mobile-terminated transactions can
be routed accordingly.
Change-Id: Ib2611421f3638eadc361787af801fffe9a34bd8a
Closes: OS#2796
---
M src/hlr.c
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/23/9723/1
diff --git a/src/hlr.c b/src/hlr.c
index 643dfff..41566be 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -296,10 +296,19 @@
} else
#endif
{
+ int rc;
+ uint8_t *addr;
+ rc = osmo_gsup_conn_ccm_get(conn, , IPAC_IDTAG_SERNR);
+ if (rc <= 0) {
+ osmo_strlcpy(luop->subscr.imsi, gsup->imsi,
sizeof(luop->subscr.imsi));
+ lu_op_tx_error(luop, GMM_CAUSE_NET_FAIL);
+ return 0;
+ }
/* TODO: Subscriber allowed to roam in PLMN? */
/* TODO: Update RoutingInfo */
/* TODO: Reset Flag MS Purged (cs/ps) */
/* TODO: Control_Tracing_HLR / Control_Tracing_HLR_with_SGSN */
+ db_subscr_lu(g_hlr->dbc, luop->subscr.id, (char *)addr,
luop->is_ps);
lu_op_tx_insert_subscr_data(luop);
}
return 0;
--
To view, visit https://gerrit.osmocom.org/9723
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib2611421f3638eadc361787af801fffe9a34bd8a
Gerrit-Change-Number: 9723
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte