diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-19 11:53:49 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-20 17:35:46 +0100 |
commit | 763e8c77661cf65221389436f983ef5927ff79ee (patch) | |
tree | 751adcd6d61c3685130a9c5e5e7ace4f594e076b /openbsc/src/vty_interface.c | |
parent | 823ff1608885a0199dc460d5aaca28cd2ba2c1d7 (diff) |
[ipacc] Add a way to override the rtp payload for MDCX
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r-- | openbsc/src/vty_interface.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 5dd3470fb..7b9066002 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c @@ -867,6 +867,16 @@ error: return CMD_ERR_INCOMPLETE; } +DEFUN(cfg_net_ipacc_rtp_payload, + cfg_net_ipacc_rtp_payload_cmd, + "ipacc rtp_payload <0-256>", + "Override the RTP payload to use") +{ + gsmnet->rtp_payload = atoi(argv[0]) & 0xff; + + return CMD_SUCCESS; +} + /* per-BTS configuration */ DEFUN(cfg_bts, cfg_bts_cmd, @@ -1308,6 +1318,7 @@ int bsc_vty_init(struct gsm_network *net) install_element(GSMNET_NODE, &cfg_net_encryption_cmd); install_element(GSMNET_NODE, &cfg_net_neci_cmd); install_element(GSMNET_NODE, &cfg_net_supported_codecs_cmd); + install_element(GSMNET_NODE, &cfg_net_ipacc_rtp_payload_cmd); install_element(GSMNET_NODE, &cfg_bts_cmd); install_node(&bts_node, config_write_bts); |