diff options
Diffstat (limited to 'include/osmocom/msc')
-rw-r--r-- | include/osmocom/msc/codec_filter.h | 2 | ||||
-rw-r--r-- | include/osmocom/msc/ran_infra.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/msc/codec_filter.h b/include/osmocom/msc/codec_filter.h index da4a67e04..a8be8445e 100644 --- a/include/osmocom/msc/codec_filter.h +++ b/include/osmocom/msc/codec_filter.h @@ -44,7 +44,7 @@ struct codec_filter { struct sdp_audio_codec assignment; }; -void codec_filter_set_ran(struct codec_filter *codec_filter, enum osmo_rat_type ran_type); +void codec_filter_set_ran(struct codec_filter *codec_filter, const struct sdp_audio_codecs *codecs); void codec_filter_set_bss(struct codec_filter *codec_filter, const struct gsm0808_speech_codec_list *codec_list_bss_supported); int codec_filter_run(struct codec_filter *codec_filter, struct sdp_msg *result, const struct sdp_msg *remote); diff --git a/include/osmocom/msc/ran_infra.h b/include/osmocom/msc/ran_infra.h index 262a9c82e..f96e2cfc9 100644 --- a/include/osmocom/msc/ran_infra.h +++ b/include/osmocom/msc/ran_infra.h @@ -26,6 +26,9 @@ struct ran_infra { const ran_dec_l2_t ran_dec_l2; const ran_encode_t ran_encode; struct sccp_ran_inst *sri; + /* Codecs available on this RAN type by default, in order of preference. If empty, all known codecs will be + * allowed and offered to peers. */ + struct sdp_audio_codecs codecs; /* To always set up the MGW endpoint facing the RAN side with specific codecs, list those here. Otherwise leave * empty (to use the result of codecs filtering). This exists for IuCS, to always set the MGW endpoint facing * RAN to IUFP, to decapsulate the IuUP headers. */ |