From b5208d45b1d3a5138635bd173e26833fe332e76e Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 5 Oct 2018 14:59:37 +0200 Subject: 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 --- include/osmocom/bsc/codec_pref.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/bsc/codec_pref.h') 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); -- cgit v1.2.3