diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-12-10 18:33:30 +0100 |
---|---|---|
committer | Stefan Sperling <stsp@stsp.name> | 2018-12-11 09:16:15 +0000 |
commit | ad797ce2bb7dbc083299582beb28f2af4b875152 (patch) | |
tree | 8e92099634408ef34182328117fb5106cddc03f9 /src | |
parent | 325f106b34fb03684ec99b56d285c42d912ecd28 (diff) |
detach cancelled subscribers from VLR
When a subscriber is cancelled, fake an IMSI detach to
ensure that the subscriber gets removed from the VLR.
I am not entirely sure if this change is correct but
it does make TTCN3 test MSC_Tests.TC_gsup_cancel pass.
Change-Id: I5918106e4a94ba2e6c61bcd7b90d3bf0565513cc
Related: OS#2886
Diffstat (limited to 'src')
-rw-r--r-- | src/libvlr/vlr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c index 76c84dec4..336991482 100644 --- a/src/libvlr/vlr.c +++ b/src/libvlr/vlr.c @@ -970,6 +970,8 @@ static int vlr_subscr_handle_cancel_req(struct vlr_subscr *vsub, gmm_cause_to_fsm_and_mm_cause(gsup_msg->cause, &fsm_cause, &gsm48_rej); vlr_subscr_cancel_attach_fsm(vsub, fsm_cause, gsm48_rej); + vlr_subscr_rx_imsi_detach(vsub); + return rc; } |