diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-07 14:44:51 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-07 14:47:25 +0800 |
commit | 3dd069cfd7fa8d38702f14a28b748997aa4554d8 (patch) | |
tree | bab041e9c5b356e390bb859a67b81f7688033c2f | |
parent | e1dcbc762202a7f1a0022129b523e20b41bc532d (diff) |
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...
-rw-r--r-- | openbsc/src/bssap.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |