diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-28 04:45:05 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-28 10:23:34 +0100 |
commit | 93b6c6555ce0724cb668ea4bda5e31c50aaa7e4c (patch) | |
tree | e28fd363dc051260cd8488236dd048e426317dc4 /openbsc/src/abis_rsl.c | |
parent | 1e1c6aa5a3db4680d1f8088ef6f7c0cb1117d032 (diff) |
[rsl] Send the MultiRateConfig in the RSL Channel Activate msg
If the lchan has AMR as speech codec we also need to send the
multirate config IE in the channel activation. This is already
done for the RSL Channel Modify message.
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r-- | openbsc/src/abis_rsl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index 11a4355a7..10ebd6d44 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -650,6 +650,10 @@ int rsl_chan_activate_lchan(struct gsm_lchan *lchan, u_int8_t act_type, msgb_tv_put(msg, RSL_IE_MS_POWER, lchan->ms_power); msgb_tv_put(msg, RSL_IE_TIMING_ADVANCE, ta); + if (lchan->tch_mode == GSM48_CMODE_SPEECH_AMR) + msgb_tlv_put(msg, RSL_IE_MR_CONFIG, sizeof(lchan->mr_conf), + (u_int8_t *) &lchan->mr_conf); + msg->trx = lchan->ts->trx; return abis_rsl_sendmsg(msg); |