<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12302">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">msc_vty.c: configurable retrieval of IMEI, IMEISV<br><br>Make these options configurable:<br>* check-imei-rqd<br>* retrieve-imeisv-early<br>* retrieve-imeisv-ciphered<br><br>Related: OS#3189<br>Change-Id: Iee516b9cd7877b21207ce9a6d954109f19558163<br>---<br>M src/libmsc/msc_vty.c<br>1 file changed, 38 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/02/12302/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c</span><br><span>index 87adc82..9973412 100644</span><br><span>--- a/src/libmsc/msc_vty.c</span><br><span>+++ b/src/libmsc/msc_vty.c</span><br><span>@@ -432,6 +432,32 @@</span><br><span>       return CMD_SUCCESS;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+DEFUN(cfg_msc_check_imei_rqd, cfg_msc_check_imei_rqd_cmd,</span><br><span style="color: hsl(120, 100%, 40%);">+      "check-imei-rqd (0|1)",</span><br><span style="color: hsl(120, 100%, 40%);">+      "Send each IMEI to the EIR to ask if it is permitted or not. The EIR is implemented as part of osmo-hlr, "</span><br><span style="color: hsl(120, 100%, 40%);">+      "and can optionally save the IMEI in the HLR.\n"</span><br><span style="color: hsl(120, 100%, 40%);">+      "0 = do not send IMEIs to the EIR\n"</span><br><span style="color: hsl(120, 100%, 40%);">+      "1 = send each IMEI to the EIR\n")</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+   gsmnet->vlr->cfg.check_imei_rqd = atoi(argv[0]) ? true : false;</span><br><span style="color: hsl(120, 100%, 40%);">+ return CMD_SUCCESS;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+DEFUN(cfg_msc_retrieve_imeisv_early, cfg_msc_retrieve_imeisv_early_cmd,</span><br><span style="color: hsl(120, 100%, 40%);">+      "retrieve-imeisv-early (0|1)",</span><br><span style="color: hsl(120, 100%, 40%);">+      "") // FIXME</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+    gsmnet->vlr->cfg.retrieve_imeisv_early = atoi(argv[0]) ? true : false;</span><br><span style="color: hsl(120, 100%, 40%);">+  return CMD_SUCCESS;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+DEFUN(cfg_msc_retrieve_imeisv_ciphered, cfg_msc_retrieve_imeisv_ciphered_cmd,</span><br><span style="color: hsl(120, 100%, 40%);">+      "retrieve-imeisv-ciphered (0|1)",</span><br><span style="color: hsl(120, 100%, 40%);">+      "") // FIXME</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+     gsmnet->vlr->cfg.retrieve_imeisv_ciphered = atoi(argv[0]) ? true : false;</span><br><span style="color: hsl(120, 100%, 40%);">+       return CMD_SUCCESS;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> DEFUN(cfg_msc_paging_response_timer, cfg_msc_paging_response_timer_cmd,</span><br><span>       "paging response-timer (default|<1-65535>)",</span><br><span>       "Configure Paging\n"</span><br><span>@@ -500,6 +526,15 @@</span><br><span>     if (gsmnet->vlr->cfg.auth_reuse_old_sets_on_error)</span><br><span>             vty_out(vty, " auth-tuple-reuse-on-error 1%s",</span><br><span>                     VTY_NEWLINE);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (gsmnet->vlr->cfg.check_imei_rqd)</span><br><span style="color: hsl(120, 100%, 40%);">+            vty_out(vty, " check-imei-rqd 1 %s",</span><br><span style="color: hsl(120, 100%, 40%);">+                        VTY_NEWLINE);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (gsmnet->vlr->cfg.retrieve_imeisv_early)</span><br><span style="color: hsl(120, 100%, 40%);">+             vty_out(vty, " retrieve-imeisv-early 1%s",</span><br><span style="color: hsl(120, 100%, 40%);">+                  VTY_NEWLINE);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (gsmnet->vlr->cfg.retrieve_imeisv_ciphered)</span><br><span style="color: hsl(120, 100%, 40%);">+          vty_out(vty, " retrieve-imeisv-ciphered 1%s",</span><br><span style="color: hsl(120, 100%, 40%);">+                       VTY_NEWLINE);</span><br><span> </span><br><span>    if (gsmnet->paging_response_timer != MSC_PAGING_RESPONSE_TIMER_DEFAULT)</span><br><span>           vty_out(vty, " paging response-timer %u%s", gsmnet->paging_response_timer, VTY_NEWLINE);</span><br><span>@@ -1500,6 +1535,9 @@</span><br><span>        install_element(MSC_NODE, &cfg_msc_no_assign_tmsi_cmd);</span><br><span>  install_element(MSC_NODE, &cfg_msc_auth_tuple_max_reuse_count_cmd);</span><br><span>      install_element(MSC_NODE, &cfg_msc_auth_tuple_reuse_on_error_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+        install_element(MSC_NODE, &cfg_msc_check_imei_rqd_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+   install_element(MSC_NODE, &cfg_msc_retrieve_imeisv_early_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+    install_element(MSC_NODE, &cfg_msc_retrieve_imeisv_ciphered_cmd);</span><br><span>        install_element(MSC_NODE, &cfg_msc_cs7_instance_a_cmd);</span><br><span>  install_element(MSC_NODE, &cfg_msc_cs7_instance_iu_cmd);</span><br><span>         install_element(MSC_NODE, &cfg_msc_paging_response_timer_cmd);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12302">change 12302</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12302"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Iee516b9cd7877b21207ce9a6d954109f19558163 </div>
<div style="display:none"> Gerrit-Change-Number: 12302 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>