SubmitAsync

.NET library for SMPP protocol
Locked
stevep
Posts: 30
Joined: Wed May 02, 2007 7:41 pm

SubmitAsync

Post by stevep » Sat Jul 02, 2011 6:45 am

Hi,

Congratulations on the new projects.

Can I ask, when submitting asynchronously what is the best method to match the submitted sequence with the returned messageid. I can see anywhere to match the submission with the response for tracking delivery against the messageid.

Steve
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Re: SubmitAsync

Post by alt » Wed Jul 06, 2011 8:10 pm

Hi Steve,

When you use async submit you know only sequence_number of outgoing submit_sm. In event's method evSubmitComplete you receive submit_sm_resp with MessageId that you can connect with sequence_number. Then when you receive delivery receipt in evDeliverSm there is same MessageId which you can use for updating status of transmited SMS text.

As the result SMS text connects with several secuence_numbers which are connected with several MessageIds.

In database you can have table for outgoing_text, which have relation one to many with table outgoing_sms_parts. In outgoing_sms_parts you can store sequence_number, MessageId and status from delivery receipt. SMS Text is considired as delivered when all sms parts are delivered.
Locked