aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 14:11:39 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 14:11:39 +0100
commit9cc020ab21e2927869570f088c88782cf0d5689a (patch)
tree20550582b3b3f33a77e5646add039e623a02e05f /openbsc
parentedee7944a5079591b49e6b80047ddecaba5891c2 (diff)
rll_establish: When on a TCH always use the SACH for SAPI!=0
When we are on a TCH/H or TCH/F always use the SACH for SAPI!=0 for the establishment otherwise it will never be answered. This can be tested by starting to page with a traffic channel and then trying to submit the SMS.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_rll.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/bsc_rll.c b/openbsc/src/bsc_rll.c
index e9d6f252a..1551d948b 100644
--- a/openbsc/src/bsc_rll.c
+++ b/openbsc/src/bsc_rll.c
@@ -80,8 +80,7 @@ int rll_establish(struct gsm_lchan *lchan, u_int8_t sapi,
/* If we are a TCH and not in signalling mode, we need to
* indicate that the new RLL connection is to be made on the SACCH */
if ((lchan->type == GSM_LCHAN_TCH_F ||
- lchan->type == GSM_LCHAN_TCH_H) &&
- lchan->rsl_cmode != RSL_CMOD_SPD_SIGN)
+ lchan->type == GSM_LCHAN_TCH_H) && sapi != 0)
link_id |= 0x40;
use_lchan(lchan);