summaryrefslogtreecommitdiffstats
path: root/openbsc/src/bssap.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r--openbsc/src/bssap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index dd0346e..0cd124c 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;