diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-03-31 11:57:38 +0200 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2014-05-06 17:23:02 +0400 |
commit | 0315f6939397554318f42ec023d26e2a17772052 (patch) | |
tree | 267412478cb121fe18db4b4da3125f308ea2f40e | |
parent | 55bb369a1dd701a17e29c5f0a5ccea76cc67eda1 (diff) |
If requested TCH/H channel is not available, try assigning TCH/F
If MNCC application requests a half rate channel, the channel might not be
available, due to different cell configuration, so the full rate channel
is used instead.
-rw-r--r-- | openbsc/src/libbsc/abis_rsl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c index 5b9213e04..c9bede615 100644 --- a/openbsc/src/libbsc/abis_rsl.c +++ b/openbsc/src/libbsc/abis_rsl.c @@ -1414,6 +1414,16 @@ static int rsl_rx_chan_rqd(struct msgb *msg) /* check availability / allocate channel */ lchan = lchan_alloc(bts, lctype, is_lu); + if (!lchan && lctype == GSM_LCHAN_TCH_H) { + /* no TCH/H available, try fallback to TCH/F */ + LOGP(DRSL, LOGL_NOTICE, "BTS %d CHAN RQD: no resources for " + "%s 0x%x, retrying with %s\n", + msg->lchan->ts->trx->bts->nr, + gsm_lchant_name(lctype), + rqd_ref->ra, gsm_lchant_name(GSM_LCHAN_TCH_F)); + lctype = GSM_LCHAN_TCH_F; + lchan = lchan_alloc(bts, lctype, is_lu); + } if (!lchan) { LOGP(DRSL, LOGL_NOTICE, "BTS %d CHAN RQD: no resources for %s 0x%x\n", msg->lchan->ts->trx->bts->nr, gsm_lchant_name(lctype), rqd_ref->ra); |