diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-07-09 17:39:20 +0200 |
---|---|---|
committer | dexter <pmaier@sysmocom.de> | 2021-07-13 10:41:58 +0000 |
commit | cb0786365c5115e0c0e95429a12e74789dc13211 (patch) | |
tree | 56940aff8932b88a0a1342c3aba04bf8e78e3042 /src/osmo-bsc/bsc_vty.c | |
parent | dfd7bef6644d0c0837f7e5498bc5c86362b668dc (diff) |
bsc_vty: add vty option to allow call-reestablishment
The rach control parameter value that controls the usage of
call-reestablishment is currently hardcoded. Lets add a VTY option for
this so that we are able to configure call-reestablishment
Change-Id: Ia18c1dde4c001cb4d423f694f8bc146adfd77daf
Related: SYS#5130
Diffstat (limited to 'src/osmo-bsc/bsc_vty.c')
-rw-r--r-- | src/osmo-bsc/bsc_vty.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c index 9c1813d9d..97dd61556 100644 --- a/src/osmo-bsc/bsc_vty.c +++ b/src/osmo-bsc/bsc_vty.c @@ -1102,6 +1102,8 @@ static void config_write_bts_single(struct vty *vty, struct gsm_bts *bts) vty_out(vty, " cell barred 1%s", VTY_NEWLINE); if ((bts->si_common.rach_control.t2 & 0x4) == 0) vty_out(vty, " rach emergency call allowed 1%s", VTY_NEWLINE); + if (bts->si_common.rach_control.re == 0) + vty_out(vty, " rach call-reestablishment allowed 1%s", VTY_NEWLINE); if ((bts->si_common.rach_control.t3) != 0) for (i = 0; i < 8; i++) if (bts->si_common.rach_control.t3 & (0x1 << i)) @@ -3171,6 +3173,26 @@ DEFUN_USRATTR(cfg_bts_rach_ec_allowed, return CMD_SUCCESS; } +DEFUN_USRATTR(cfg_bts_rach_re_allowed, + cfg_bts_rach_re_allowed_cmd, + X(BSC_VTY_ATTR_RESTART_ABIS_RSL_LINK), + "rach call-reestablishment allowed (0|1)", + RACH_STR + "Resume calls after radio link failure\n" + "Resume calls after radio link failure\n" + "Forbid MS to reestablish calls\n" + "Allow MS to try to reestablish calls\n") +{ + struct gsm_bts *bts = vty->index; + + if (atoi(argv[0]) == 0) + bts->si_common.rach_control.re = 1; + else + bts->si_common.rach_control.re = 0; + + return CMD_SUCCESS; +} + DEFUN_USRATTR(cfg_bts_rach_ac_class, cfg_bts_rach_ac_class_cmd, X(BSC_VTY_ATTR_RESTART_ABIS_RSL_LINK), @@ -8117,6 +8139,7 @@ int bsc_vty_init(struct gsm_network *network) install_element(BTS_NODE, &cfg_bts_rach_nm_ldavg_cmd); install_element(BTS_NODE, &cfg_bts_cell_barred_cmd); install_element(BTS_NODE, &cfg_bts_rach_ec_allowed_cmd); + install_element(BTS_NODE, &cfg_bts_rach_re_allowed_cmd); install_element(BTS_NODE, &cfg_bts_rach_ac_class_cmd); install_element(BTS_NODE, &cfg_bts_ms_max_power_cmd); install_element(BTS_NODE, &cfg_bts_cell_resel_hyst_cmd); |