aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-03-01 11:35:36 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2019-03-11 11:29:06 +0100
commit6366f42b06133454130e718a02b3a02f27f0cd30 (patch)
tree40e244353e218f150614091cbf9d77afd791ed98
parenta6e642154c6c59802d2fecedcd5666382f8dda9c (diff)
osmo_bsc_msc: Use meaningful amr rate configuration on MSC level
The current default configuration for permitted AMR rates on MSC level is not very useful since it only supports a single rate and neglects Config-NB-Code = 1, which includes the four most common AMR rates (12.2, 7.4, 5.9, 4.75) Lets make sure that those rates are are the default for the MSC configuration. Change-Id: I8b2a62879755a8a5edfa1aa36c748968a56aad0d Related: SYS#4470
-rw-r--r--src/osmo-bsc/osmo_bsc_msc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_msc.c b/src/osmo-bsc/osmo_bsc_msc.c
index 71931e6..3a20a61 100644
--- a/src/osmo-bsc/osmo_bsc_msc.c
+++ b/src/osmo-bsc/osmo_bsc_msc.c
@@ -92,8 +92,12 @@ struct bsc_msc_data *osmo_msc_data_alloc(struct gsm_network *net, int nr)
msc_data->allow_emerg = 1;
msc_data->a.asp_proto = OSMO_SS7_ASP_PROT_M3UA;
- /* Defaults for the audio setup */
+ /* Defaults (Config-NB-Code = 1) for the audio setup, see also
+ * 3GPP TS 28.062, Table 7.11.3.1.3-2 */
+ msc_data->amr_conf.m4_75 = 1;
msc_data->amr_conf.m5_90 = 1;
+ msc_data->amr_conf.m7_40 = 1;
+ msc_data->amr_conf.m12_2 = 1;
/* Allow the full set of possible codecs by default */
msc_data->audio_length = 5;