diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-09-13 12:05:51 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-09-24 11:35:52 +0200 |
commit | 67e47c6076fea691345d594977e354538d50566b (patch) | |
tree | af72aeba4e5b5b0625069547d71b2ff12e7fdba1 /include/osmocom | |
parent | 5a43b55a8e749ef020a35679ecc3d75e1d23a8fa (diff) |
codec_pref: Add Codec List to COMPLETE LAYER 3 INFORMATION
The COMPLETE LAYER 3 INFORMATION message lacks the Codec List (BSS Supported)
information element. This information element is mandatory for networks
that use an IP based user plane (AoIP).
- Add function to generate the speech codec list from the current codec
settings (Available codecs)
- Generate and embed information element in L3 Compl. message
Depends: libosmocore I4e656731b16621736c7a2f4e64d9ce63b1064e98
Change-Id: Id6f2af3fdab45bf05f06aec03e222734d7a4cf70
Related: OS#3548
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/bsc/codec_pref.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/bsc/codec_pref.h b/include/osmocom/bsc/codec_pref.h index 94fc987eb..09aaa604b 100644 --- a/include/osmocom/bsc/codec_pref.h +++ b/include/osmocom/bsc/codec_pref.h @@ -7,6 +7,8 @@ struct gsm0808_channel_type; struct gsm0808_speech_codec_list; struct gsm_audio_support; struct bts_codec_conf; +struct bsc_msc_data; +struct gsm_bts; int match_codec_pref(enum gsm48_chan_mode *chan_mode, bool *full_rate, @@ -15,3 +17,7 @@ int match_codec_pref(enum gsm48_chan_mode *chan_mode, struct gsm_audio_support * const *audio_support, int audio_length, const struct bts_codec_conf *bts_codec); + +void gen_bss_supported_codec_list(struct gsm0808_speech_codec_list *scl, + const struct bsc_msc_data *msc, + const struct gsm_bts *bts); |