aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-08-08 18:15:32 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2023-03-05 07:03:05 +0100
commitcc6d818baa3ce1ae1a53f31081041ddf78feaadd (patch)
tree656f237205be56d07ed1a65fc08425cc2636e0e7
parentff752e16d2274b319bf8f1c81cdb023fd6d5c7d2 (diff)
codecs: compose HO Req Ch Type from cc.codecs
-rw-r--r--src/libmsc/msc_ho.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libmsc/msc_ho.c b/src/libmsc/msc_ho.c
index e11abcf97..2f25ca836 100644
--- a/src/libmsc/msc_ho.c
+++ b/src/libmsc/msc_ho.c
@@ -413,10 +413,11 @@ static void msc_ho_send_handover_request(struct msc_a *msc_a)
osmo_hexdump_nospc_c(OTC_SELECT, msc_a->geran_encr.kc128, sizeof(msc_a->geran_encr.kc128))
: "-");
- if (msc_a->cc.active_trans) {
- if (mncc_bearer_cap_to_channel_type(&channel_type, &msc_a->cc.active_trans->bearer_cap)) {
+ if (cc_trans) {
+ if (sdp_audio_codecs_to_gsm0808_channel_type(&channel_type,
+ &cc_trans->cc.codecs.result.audio_codecs)) {
msc_ho_failed(msc_a, GSM0808_CAUSE_EQUIPMENT_FAILURE,
- "Failed to encode Bearer Cap to Channel Type\n");
+ "Failed to determine Channel Type for Handover Request message\n");
return;
}
ran_enc_msg.handover_request.geran.channel_type = &channel_type;