Try to send any queued SMS for the sender

This commit is contained in:
Keith Whyte 2022-06-11 04:28:14 +01:00
parent b5d01dd240
commit 705364ebba
1 changed files with 5 additions and 0 deletions

View File

@ -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);