diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-04-18 23:49:47 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-04-19 08:21:41 +0200 |
commit | 51f9693ba634945f489523453c3bdfc07274b09d (patch) | |
tree | da791526690eeaa92f86aa024c2d4f613ed7c94e | |
parent | b34faf6f8ceedcafdb10523a39fe2bcd3d7c1faf (diff) |
make HR channels work for voice, not only signalling
without this, we would set a FR_V1 codec on a TCH/H channel, which
the L1 is obviously not happy with.
-rw-r--r-- | src/osmo-bts-sysmo/oml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c index 9fd7826d..3c268497 100644 --- a/src/osmo-bts-sysmo/oml.c +++ b/src/osmo-bts-sysmo/oml.c @@ -516,7 +516,10 @@ static void lchan2lch_par(GsmL1_LogChParam_t *lch_par, struct gsm_lchan *lchan) clear_amr_params(lch_par); break; case GSM48_CMODE_SPEECH_V1: - lch_par->tch.tchPlType = GsmL1_TchPlType_Fr; + if (lchan->type == GSM_LCHAN_TCH_F) + lch_par->tch.tchPlType = GsmL1_TchPlType_Fr; + else + lch_par->tch.tchPlType = GsmL1_TchPlType_Hr; #ifdef L1_HAS_RTP_MODE #ifdef USE_L1_RTP_MODE lch_par->tch.tchPlFmt = GsmL1_TchPlFmt_Rtp; |