summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-31 11:57:38 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2015-12-27 21:47:37 +0100
commita964c3e894e13530d17eff50d3903d8ac968bb37 (patch)
tree9e39561806b7a6e47b8d86f62fa9ed5cff5c6a3e
parentc155ea7240776a151e763ea50bceeb57fcf48ffd (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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 8e9258c..0ee31ae 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -1418,6 +1418,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);