aboutsummaryrefslogtreecommitdiffstats
path: root/src/libvlr/vlr.c
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-05-06 13:09:55 +0200
committerOliver Smith <osmith@sysmocom.de>2019-05-15 10:57:43 +0200
commitcbf2c93d118facc13600811563d22df5a944a416 (patch)
treed2dedfb97e7de0b02f2758de453cf8a4f4fe413d /src/libvlr/vlr.c
parentb8077b0c1dcf76f7117bed9bb78c508d56df2386 (diff)
vlr: optionally send IMEI early to HLR
When 'check-imei-rqd 1 early' is set in the config, send the IMEI to the HLR before doing the location update with the HLR. The OsmoHLR documentation referenced in the code will be added in osmo-hlr.git's Change-Id I2dd4a56f7b8be8b5d0e6fc32e04459e5e278d0a9. Related: OS#2542 Change-Id: I88283cad23793b475445d814ff49db534cb41244
Diffstat (limited to 'src/libvlr/vlr.c')
-rw-r--r--src/libvlr/vlr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index f76a7ee01..b156b430b 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -1043,6 +1043,8 @@ static int vlr_subscr_handle_check_imei(struct vlr_subscr *vsub, const struct os
return -ENODEV;
}
+ /* Dispatch result to vsub->lu_fsm, which will either handle the result by itself (Check IMEI early) or dispatch
+ * it further to lu_compl_vlr_fsm (Check IMEI after LU). */
if (gsup->message_type == OSMO_GSUP_MSGT_CHECK_IMEI_RESULT) {
if (gsup->imei_result == OSMO_GSUP_IMEI_RESULT_ACK)
osmo_fsm_inst_dispatch(vsub->lu_fsm, VLR_ULA_E_HLR_IMEI_ACK, NULL);