fix Speech Codec cfg in BSSMAP Assignment Complete

In send_assignment_complete(), obviously return the current channel
configuration from lchan->current_ch_mode_rate, which is the proper
place to get the channel mode after RSL Chan Activ Ack.

It is interesting to look at the history of this line of code.
lchan->current_ch_mode_rate was added later, so now the mistake is very
obvious.

Related: SYS#6229
Change-Id: I3bf8f5ea9ae2a3c12fc5b483818d550a069fe66e
This commit is contained in:
Neels Hofmeyr 2022-12-13 16:00:38 +01:00 committed by fixeria
parent 19c70f1125
commit fc33972530
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ static void send_assignment_complete(struct gsm_subscriber_connection *conn)
if (gscon_is_aoip(conn)) {
/* Extrapolate speech codec from speech mode */
gsm0808_speech_codec_from_chan_type(&sc, perm_spch);
sc.cfg = conn->lchan->activate.ch_mode_rate.s15_s0;
sc.cfg = conn->lchan->current_ch_mode_rate.s15_s0;
sc_ptr = ≻
}
}