aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-10-05 14:59:37 +0200
committerHarald Welte <laforge@gnumonks.org>2018-10-08 09:50:12 +0000
commitb5208d45b1d3a5138635bd173e26833fe332e76e (patch)
treec7e38ed54c0b890d112e13f694ff36ae183c88df /include/osmocom/bsc
parentd4d4f918a852bb16459d6d51a7799dd03c56979b (diff)
codec_pref: check codec configuration before start
In networks with a couple of different BTSs it may be likely that one accidently sets up a codec configuration (codec-support)) that will be mutually exclusive towards the codec configuration for the MSC (codec-list). We need a check that validates the configuration before start to catch such configuration flaws quickly. - Add a check that checks each MSC codec-list against each BTS codec-support setting. Change-Id: Ice827896bab1a2330741e0fccc731a04f1a07d38 Related: OS#3625
Diffstat (limited to 'include/osmocom/bsc')
-rw-r--r--include/osmocom/bsc/codec_pref.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/bsc/codec_pref.h b/include/osmocom/bsc/codec_pref.h
index 3085ad4f9..d62d29ff8 100644
--- a/include/osmocom/bsc/codec_pref.h
+++ b/include/osmocom/bsc/codec_pref.h
@@ -21,3 +21,5 @@ int match_codec_pref(enum gsm48_chan_mode *chan_mode,
void gen_bss_supported_codec_list(struct gsm0808_speech_codec_list *scl,
const struct bsc_msc_data *msc,
const struct gsm_bts *bts);
+
+int check_codec_pref(struct llist_head *mscs);