From 6d71ccf48499a2c93642cab037099e74e4c4d161 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 14 Dec 2018 13:30:14 +0100 Subject: msc_vty: also show IMEI and IMEISV When the VLR subscriber information is shown on the VTY it shows IMSI and TMSI, but not IMEI and IMEISV. Since in some cases this information might be helpful, lets display it as well. Change-Id: Iedd75dbb9850388ec1fedb984ed0b8bf4c62e780 --- src/libmsc/msc_vty.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c index 3079bc3a0..c5d28322b 100644 --- a/src/libmsc/msc_vty.c +++ b/src/libmsc/msc_vty.c @@ -641,6 +641,10 @@ static void subscr_dump_full_vty(struct vty *vty, struct vlr_subscr *vsub) if (vsub->tmsi_new != GSM_RESERVED_TMSI) vty_out(vty, " new TMSI: %08X%s", vsub->tmsi_new, VTY_NEWLINE); + if (vsub->imei[0] != '\0') + vty_out(vty, " IMEI: %s%s", vsub->imei, VTY_NEWLINE); + if (vsub->imeisv[0] != '\0') + vty_out(vty, " IMEISV: %s%s", vsub->imeisv, VTY_NEWLINE); vty_out(vty, " Flags: %s", VTY_NEWLINE); vty_out(vty, " IMSI detached: %s%s", -- cgit v1.2.3