Page 1 of 1

client_evDeliverSm Fires Before SubmitAsync Is Completed

Posted: Thu Nov 19, 2020 11:12 am
by vineet
Hi Alt,

the event client_evDeliverSm starts firing before the submitasync has given process all the messages.

IEnumerable<SubmitSmResp> ResponseList = (await SMPPClient.SubmitAsync(batch)).ToArray();
before ResponseList is populated with responses client_evDeliverSm starts firing this creates a problem on how to match delivery receipt with the messageid as the messageid is provided by the server and it before getting messageid delivery receipt is coming. please tell a solution.

thanks

Re: client_evDeliverSm Fires Before SubmitAsync Is Completed

Posted: Thu Nov 19, 2020 6:07 pm
by alt
Hi vineet,

It is normal case. SMPP is asynchronous protocol. When you cannot find MessageId in sent messages, you need to save received delivery receipts in some collection/dictionary and process it when you finish with batch sending.

Re: client_evDeliverSm Fires Before SubmitAsync Is Completed

Posted: Thu Nov 19, 2020 6:52 pm
by vineet
Thanks alt we have done the same way implemented dictionary.