osmith has submitted this change and it was merged. (
https://gerrit.osmocom.org/12302 )
Change subject: msc_vty.c: make check-imei-rqd configurable
......................................................................
msc_vty.c: make check-imei-rqd configurable
Related: OS#3189
Change-Id: Iee516b9cd7877b21207ce9a6d954109f19558163
---
M src/libmsc/msc_vty.c
M tests/test_nodes.vty
2 files changed, 17 insertions(+), 0 deletions(-)
Approvals:
Neels Hofmeyr: Looks good to me, approved
Max: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c
index e2582a9..1fdf560 100644
--- a/src/libmsc/msc_vty.c
+++ b/src/libmsc/msc_vty.c
@@ -432,6 +432,17 @@
return CMD_SUCCESS;
}
+DEFUN(cfg_msc_check_imei_rqd, cfg_msc_check_imei_rqd_cmd,
+ "check-imei-rqd (0|1)",
+ "Send each IMEI to the EIR to ask if it is permitted or not. The EIR is
implemented as part of OsmoHLR, "
+ "and can optionally save the IMEI in the HLR.\n"
+ "Do not send IMEIs to the EIR\n"
+ "Send each IMEI to the EIR\n")
+{
+ gsmnet->vlr->cfg.check_imei_rqd = atoi(argv[0]) ? true : false;
+ return CMD_SUCCESS;
+}
+
DEFUN(cfg_msc_paging_response_timer, cfg_msc_paging_response_timer_cmd,
"paging response-timer (default|<1-65535>)",
"Configure Paging\n"
@@ -501,6 +512,10 @@
vty_out(vty, " auth-tuple-reuse-on-error 1%s",
VTY_NEWLINE);
+ if (gsmnet->vlr->cfg.check_imei_rqd)
+ vty_out(vty, " check-imei-rqd 1 %s",
+ VTY_NEWLINE);
+
if (gsmnet->paging_response_timer != MSC_PAGING_RESPONSE_TIMER_DEFAULT)
vty_out(vty, " paging response-timer %u%s",
gsmnet->paging_response_timer, VTY_NEWLINE);
@@ -1548,6 +1563,7 @@
install_element(MSC_NODE, &cfg_msc_no_assign_tmsi_cmd);
install_element(MSC_NODE, &cfg_msc_auth_tuple_max_reuse_count_cmd);
install_element(MSC_NODE, &cfg_msc_auth_tuple_reuse_on_error_cmd);
+ install_element(MSC_NODE, &cfg_msc_check_imei_rqd_cmd);
install_element(MSC_NODE, &cfg_msc_cs7_instance_a_cmd);
install_element(MSC_NODE, &cfg_msc_cs7_instance_iu_cmd);
install_element(MSC_NODE, &cfg_msc_paging_response_timer_cmd);
diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty
index 3fd37b0..c62c692 100644
--- a/tests/test_nodes.vty
+++ b/tests/test_nodes.vty
@@ -36,6 +36,7 @@
no assign-tmsi
auth-tuple-max-reuse-count <-1-2147483647>
auth-tuple-reuse-on-error (0|1)
+ check-imei-rqd (0|1)
cs7-instance-a <0-15>
cs7-instance-iu <0-15>
paging response-timer (default|<1-65535>)
--
To view, visit https://gerrit.osmocom.org/12302
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iee516b9cd7877b21207ce9a6d954109f19558163
Gerrit-Change-Number: 12302
Gerrit-PatchSet: 5
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <[email protected]>
Gerrit-Reviewer: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-CC: Stefan Sperling <[email protected]>