osmo-bsc/tests
Philipp Maier cf5d0c7f63 codec_pref: fix special handling for AMR rate configuration (S15-S0)
When match_codec_pref() is called and the codec selections from the
ASSIGNMENT COMMAND are matched against the interal capabilities, the
configurations are checked one by one. When a match is found that match
is returned.

However, the implementation currently does not check the AMR S15-S0 bits
when the actual matching happens. This is done afterwards in case AMR
gets picked. Unfortunately if the MSC implementation is not obeying the
settings the MSC has previously communicated in the L3 COMPL message we
may end up with an S15-S0 configuration that has all rate selection
(which eventually end up as active set in RSL) bits set to zero. This is
an invalid configuration and should be prevented. Also the handling of
the S15-S0 bits should happen as part of the matching so that there is a
chance to try the nect codec in the list if AMR is unuseable.

Also S15-S0 has one special setting "Config-NB-Code = 1" (S1 = 1). When
this bit is set, the four (in HR only three) most common rates are
selected into the active set. If there are also other S-bits set besides
S1 we should prefer S1 and discard the other bits.

- Perform handling of S15-S0 while matching
- If S1 is set, prefer this setting and discard all other settings

Change-Id: Ie52376b51fe07ed07056e8df2e9557293ff67a78
Related: SYS#4470
2019-03-19 13:29:10 +00:00
..
abis large refactoring: use FSMs for lchans; add inter-BSC HO 2018-07-28 12:18:23 +02:00
bsc large refactoring: use FSMs for lchans; add inter-BSC HO 2018-07-28 12:18:23 +02:00
codec_pref codec_pref: fix special handling for AMR rate configuration (S15-S0) 2019-03-19 13:29:10 +00:00
gsm0408 gsm0408_rcvmsg: Release lchan if L3 fails to complete 2018-11-21 17:59:06 +01:00
handover Move msc related code from gsm_data to bsc_msc 2019-03-14 17:07:45 +01:00
nanobts_omlattr large refactoring: use FSMs for lchans; add inter-BSC HO 2018-07-28 12:18:23 +02:00
subscr cosmetic: bsc_subscr_alloc: log initial get 2018-06-08 16:16:42 +00:00
Makefile.am make: allow vty-tests without configure 2018-09-27 03:32:35 +02:00
atlocal.in Fix repo split aftermath 2017-10-02 08:38:34 +00:00
ctrl_test_runner.py remove traces of osmo-bsc_nat in python test (osmoappdesc/test_runner) 2018-06-10 22:13:47 +02:00
handover_cfg.vty vty doc: drop "(HO algo 2 only)" strings 2018-11-06 20:01:53 +00:00
neighbor_ident.vty fix build: revert bad neighbor_ident.vty change 2018-10-30 16:01:10 +01:00
osmo-bsc.vty resurrect meas_feed.c: vty, vty-test 2018-05-04 15:02:24 +00:00
testsuite.at inter-BSC HO: add neighbor_ident API to manage neighbor-BSS-cells 2018-07-28 12:18:23 +02:00
vty_test_runner.py remove remaining bits of osmo-bsc_nat 2018-05-27 17:48:49 +02:00