diff options
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat_vty.c')
-rw-r--r-- | openbsc/src/osmo-bsc_nat/bsc_nat_vty.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c index 261a194c3..d5903d87e 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c @@ -172,6 +172,8 @@ static void config_write_bsc_single(struct vty *vty, struct bsc_config *bsc) if (bsc->paging_group != -1) vty_out(vty, " paging group %d%s", bsc->paging_group, VTY_NEWLINE); vty_out(vty, " paging forbidden %d%s", bsc->forbid_paging, VTY_NEWLINE); + if (bsc->osmux) + vty_out(vty, " osmux on%s", VTY_NEWLINE); } static int config_write_bsc(struct vty *vty) @@ -1175,6 +1177,22 @@ DEFUN(show_ussd_connection, return CMD_SUCCESS; } +#define OSMUX_STR "RTP multiplexing" +DEFUN(cfg_bsc_osmux, + cfg_bsc_osmux_cmd, + "osmux (on|off)", + OSMUX_STR "Enable OSMUX\n" "Disable OSMUX\n") +{ + struct bsc_config *conf = vty->index; + + if (strcmp(argv[0], "on") == 0) + conf->osmux = 1; + else if (strcmp(argv[0], "off") == 0) + conf->osmux = 0; + + return CMD_SUCCESS; +} + int bsc_nat_vty_init(struct bsc_nat *nat) { _nat = nat; @@ -1260,6 +1278,7 @@ int bsc_nat_vty_init(struct bsc_nat *nat) install_element(NAT_BSC_NODE, &cfg_bsc_old_grp_cmd); install_element(NAT_BSC_NODE, &cfg_bsc_paging_grp_cmd); install_element(NAT_BSC_NODE, &cfg_bsc_no_paging_grp_cmd); + install_element(NAT_BSC_NODE, &cfg_bsc_osmux_cmd); mgcp_vty_init(); |