diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-10-29 14:39:09 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-20 17:35:45 +0100 |
commit | a0a55f555ee28ca12b6e3a0a6d1865496399b9fc (patch) | |
tree | d1089b92a3ea9c62a30b7288d06e655b174ee5bc /openbsc/src/bssap.c | |
parent | 23ed00e410a4642cc080593f13408a41ec45d58d (diff) |
[bssap] Only start establish when the link is not yet established
This is fixing a bug when we try to submit a SMS from the MS to
the network. We send the RLS ESTABLISH REQUEST but as the MS
already established this SAPI we waited for the timeout and failed..
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r-- | openbsc/src/bssap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index 5dc681728..0f8cb53c1 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -876,7 +876,7 @@ void bts_queue_send(struct msgb *msg, int link_id) struct bss_sccp_connection_data *data = msg->lchan->msc_data; if (data->gsm_queue_size == 0) { - if (link_id == 0) { + if (msg->lchan->sapis[link_id & 0x7] != LCHAN_SAPI_UNUSED) { rsl_data_request(msg, link_id); } else { msg->smsh = (unsigned char*) link_id; |