Code: Select all
private async void FastSend(List<SmsMessage> lSmsMessage)
{
foreach (SmsMessage message in lSmsMessage)
{
var pduBuilder = SMS.ForSubmit()
.From(message.FromNumber, (AddressTON)byte.Parse(config.AdrTONSource), (AddressNPI)byte.Parse(config.AdrNPISource))
.To(message.ToNumber)
.Text(message.Text)
.Coding(SmppTools.GetEncoding(message.Text))
.ExpireIn(TimeSpan.FromMinutes(message.ExpireIn))
.AddParameter(0x001D, message.LogID.ToString())
.DeliveryReceipt();
pdus.AddRange(pduBuilder.Create(_client));
}//foreach
SubmitSmResp[] results = await _client.Submit(pdus.ToArray());
}
1. pull every time 200 messages
2. call the FastSend
3. i have a log that i see that 70000 messages were "sent" in 25 minutes (means all was pulled from db and send to FastSend in blocks of 200)
in the code the speed is set to 200/sec ->_client.SendSpeedLimit
4. i see that the last messages were actullay sent after 1hour and 30 minutes.
Question :
1. why is the submit so slow? do i need to change any setting?
2. how can i check the Q in side the inetlab to see how many messages are waiting to be sent?
Thanks for any help