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
SubmitAsync
Re: SubmitAsync
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.
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.