aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_04_11.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-24 14:29:27 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-24 14:31:39 +0100
commit024dc77de23bdc31f9592d1768cdd285c0dbb7bf (patch)
treedef2c7111433771fb916d9b73a716259f0925e66 /openbsc/src/libmsc/gsm_04_11.c
parent98258dbbc648f5fe02a62cf3d47b388376125926 (diff)
sms: Do not interfere with the SMS queue from within gsm_04_11
It was possible that two SMS would be delivered at the same time which violates GSM 04.11. We should solely rely on the sms queue to schedule more SMS to the subscriber.
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_11.c')
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 45e5dc5e9..975a263ae 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -561,11 +561,6 @@ static int gsm411_rx_rp_ack(struct msgb *msg, struct gsm_trans *trans,
sms_free(sms);
trans->sms.sms = NULL;
- /* check for more messages for this subscriber */
- sms = db_sms_get_unsent_for_subscr(trans->subscr);
- if (sms)
- gsm411_send_sms(trans->conn, sms);
-
return 0;
}
@@ -615,7 +610,6 @@ static int gsm411_rx_rp_error(struct msgb *msg, struct gsm_trans *trans,
static int gsm411_rx_rp_smma(struct msgb *msg, struct gsm_trans *trans,
struct gsm411_rp_hdr *rph)
{
- struct gsm_sms *sms;
int rc;
rc = gsm411_send_rp_ack(trans, rph->msg_ref);
@@ -625,11 +619,6 @@ static int gsm411_rx_rp_smma(struct msgb *msg, struct gsm_trans *trans,
* transfer those */
send_signal(S_SMS_SMMA, trans, NULL, 0);
- /* check for more messages for this subscriber */
- sms = db_sms_get_unsent_for_subscr(trans->subscr);
- if (sms)
- gsm411_send_sms(trans->conn, sms);
-
return rc;
}