From 83cf10c8a61e96294692ce253098cd65cedda8ba Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 24 Jun 2020 14:23:26 +0200 Subject: [PATCH] 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 --- src/libmsc/msc_a.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)