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
diff --git a/src/libmsc/msc_a.c b/src/libmsc/msc_a.c
index fd66ad3..76c0f01 100644
--- a/src/libmsc/msc_a.c
+++ b/src/libmsc/msc_a.c
@@ -138,6 +138,12 @@
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)