deprecate 'msc' / 'ip.access rtp-base <port>'
The bsc_msc_data->rtp_base has been unused ever since we introduced the exernal
MGW in osmo-bsc [1]. The vty command also still exists. Deprecate the vty
command, remove the member.
[1] "mgcp: use osmo-mgw to switch RTP streams"
commit 39c609b7c9
Change-Id Ia2882b7ca31a3219c676986e85045fa08a425d7a
Change-Id: Id14fa3066ca5d472a817593074a6222f159168a8
This commit is contained in:
parent
3a656da1c6
commit
c8f432a849
|
@ -4772,13 +4772,6 @@
|
|||
<param name='<0-65535>' doc='CI value' />
|
||||
</params>
|
||||
</command>
|
||||
<command id='ip.access rtp-base <1-65000>'>
|
||||
<params>
|
||||
<param name='ip.access' doc='IP.ACCESS specific' />
|
||||
<param name='rtp-base' doc='Set the rtp-base port for the RTP stream' />
|
||||
<param name='<1-65000>' doc='Port number' />
|
||||
</params>
|
||||
</command>
|
||||
<command id='codec-list .LIST'>
|
||||
<params>
|
||||
<param name='codec-list' doc='Set the allowed audio codecs' />
|
||||
|
|
|
@ -130,7 +130,6 @@ struct bsc_msc_data {
|
|||
struct osmo_plmn_id core_plmn;
|
||||
int core_lac;
|
||||
int core_ci;
|
||||
int rtp_base;
|
||||
|
||||
/* audio codecs */
|
||||
struct gsm48_multi_rate_conf amr_conf;
|
||||
|
|
|
@ -194,7 +194,6 @@ struct bsc_msc_data *osmo_msc_data_alloc(struct gsm_network *net, int nr)
|
|||
};
|
||||
msc_data->core_ci = -1;
|
||||
msc_data->core_lac = -1;
|
||||
msc_data->rtp_base = 4000;
|
||||
|
||||
msc_data->nr = nr;
|
||||
msc_data->allow_emerg = 1;
|
||||
|
|
|
@ -36,9 +36,6 @@
|
|||
|
||||
#include <time.h>
|
||||
|
||||
|
||||
#define IPA_STR "IP.ACCESS specific\n"
|
||||
|
||||
static struct osmo_bsc_data *osmo_bsc_data(struct vty *vty)
|
||||
{
|
||||
return bsc_gsmnet->bsc_data;
|
||||
|
@ -123,7 +120,6 @@ static void write_msc(struct vty *vty, struct bsc_msc_data *msc)
|
|||
if (msc->core_ci != -1)
|
||||
vty_out(vty, " core-cell-identity %d%s",
|
||||
msc->core_ci, VTY_NEWLINE);
|
||||
vty_out(vty, " ip.access rtp-base %d%s", msc->rtp_base, VTY_NEWLINE);
|
||||
|
||||
if (msc->ussd_welcome_txt)
|
||||
vty_out(vty, " bsc-welcome-text %s%s", msc->ussd_welcome_txt, VTY_NEWLINE);
|
||||
|
@ -297,15 +293,12 @@ DEFUN(cfg_net_bsc_ci,
|
|||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(cfg_net_bsc_rtp_base,
|
||||
DEFUN_DEPRECATED(cfg_net_bsc_rtp_base,
|
||||
cfg_net_bsc_rtp_base_cmd,
|
||||
"ip.access rtp-base <1-65000>",
|
||||
IPA_STR
|
||||
"Set the rtp-base port for the RTP stream\n"
|
||||
"Port number\n")
|
||||
"deprecated\n" "deprecated, RTP is handled by the MGW\n" "deprecated\n")
|
||||
{
|
||||
struct bsc_msc_data *data = bsc_msc_data(vty);
|
||||
data->rtp_base = atoi(argv[0]);
|
||||
vty_out(vty, "%% deprecated: 'ip.access rtp-base' has no effect, RTP is handled by the MGW%s", VTY_NEWLINE);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue