Page 1 of 1

SubmitAsync

Posted: Sat Jul 02, 2011 6:45 am
by stevep
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

Re: SubmitAsync

Posted: Wed Jul 06, 2011 8:10 pm
by alt
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.