aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-06-24 14:23:26 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-06-24 19:22:30 +0200
commit83cf10c8a61e96294692ce253098cd65cedda8ba (patch)
tree11aaac71943d38f572fda76aa58848b2cc9936a1
parent41c03337304a94880cd512fbbd2b07b4b5ddab91 (diff)
propagate Compl L3 Info Cell ID to the VLR subscriber record
As soon as the subscriber is authenticated, update the VLR entry with the MSC-A's full CGI, including the Cell Id received from the Complete Layer 3 Information. Thus the Cell Id will be shown by vty 'show subscriber cache' and 'show connection'. This is tested by osmo-ttcn3-hacks Ie410714a96353f74a52a104c56fa0a08683e0004. Related: OS#4627 Change-Id: Iee1781985fb25b21ce27526c6a3768bf70d4dc9a
-rw-r--r--src/libmsc/msc_a.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libmsc/msc_a.c b/src/libmsc/msc_a.c
index fd66ad3fd..76c0f0194 100644
--- a/src/libmsc/msc_a.c
+++ b/src/libmsc/msc_a.c
@@ -138,6 +138,12 @@ static void evaluate_acceptance_outcome(struct osmo_fsm_inst *fi, bool conn_acce
update_counters(fi, conn_accepted);
+ if (conn_accepted) {
+ /* Record the Cell ID seen in Complete Layer 3 Information in the VLR, so that it also shows in vty
+ * 'show' output. */
+ vsub->cgi = msc_a->via_cell;
+ }
+
/* Trigger transactions that we paged for */
if (msc_a->complete_layer3_type == COMPLETE_LAYER3_PAGING_RESP) {
if (conn_accepted)