From a0a55f555ee28ca12b6e3a0a6d1865496399b9fc Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 29 Oct 2009 14:39:09 +0100 Subject: [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.. --- openbsc/src/bssap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/bssap.c') 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; -- cgit v1.2.3