From 3dd069cfd7fa8d38702f14a28b748997aa4554d8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 7 Jun 2010 14:44:51 +0800 Subject: bssap.c: Claim to always do HR AMR right now. The bssap.c code is sending a multirate config with only AMR 5.9kb marked as supported, the MSC does not like if we assign a FR channel and send the GSM 0808 FR AMR mode back to the MSC. So change the code to not look at the channel type for AMR... --- openbsc/src/bssap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index dd0346e29..0cd124c88 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -872,7 +872,9 @@ static u_int8_t chan_mode_to_speech(struct gsm_lchan *lchan) break; } - if (lchan->type == GSM_LCHAN_TCH_H) + /* assume to always do AMR HR on any TCH type */ + if (lchan->type == GSM_LCHAN_TCH_H || + lchan->tch_mode == GSM48_CMODE_SPEECH_AMR) mode |= 0x4; return mode; -- cgit v1.2.3