This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
osmith gerrit-no-reply at lists.osmocom.orgosmith 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 <osmith at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-CC: Stefan Sperling <stsp at stsp.name>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190109/72dc1f49/attachment.htm>