aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whyte <keith@rhizomatica.org>2022-06-11 04:28:14 +0100
committerKeith Whyte <keith@rhizomatica.org>2022-06-11 04:28:14 +0100
commit705364ebba0b308487984747caa60df0aae6854e (patch)
tree5e99180aa47be5bd2dd8a782b58de80bd9813648
parentb5d01dd24078dc4996eb43bdcf07c046eb528d92 (diff)
Try to send any queued SMS for the senderkeith/sms
-rw-r--r--src/libmsc/sms_queue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmsc/sms_queue.c b/src/libmsc/sms_queue.c
index abd3662a5..1933262e6 100644
--- a/src/libmsc/sms_queue.c
+++ b/src/libmsc/sms_queue.c
@@ -617,6 +617,11 @@ static int sms_sms_cb(unsigned int subsys, unsigned int signal,
return 0;
}
+ /* Check the Queue for SMS for the sender */
+ vsub = vlr_subscr_find_by_msisdn(network->vlr, sms->src.addr, VSUB_USE_SMS_RECEIVER);
+ if (vsub && vsub->lu_complete && !sms_subscriber_is_pending(smq, vsub))
+ sms_send_next(vsub);
+
/* Now add this SMS to the Queue for immediate sending. */
pending = sms_pending_from(smq, sms);
sms_free(sms);