Sequence Number when sending async
Posted: Tue Feb 11, 2014 10:54 am
Hi Support,
I am using below code to get sequence number when sending message async to the SMSC but the sequence number that I get back from client_evSubmitComplete is different from the one i get from my code below.
Dim pduBuilder As ISubmitSmBuilder = SMS.ForSubmit()
pduBuilder.From(srcAdr, srcTon, srcNpi)
pduBuilder.To(dstAdr, dstTon, dstNpi)
pduBuilder.Text("Hello")
pduBuilder.Coding(coding)
pduBuilder.DeliveryReceipt()
' pduBuilder.[Set](Sub(sm As SubmitSm) sm.Sequence = seq) ' _client.SequenceGenerator.NextSequenceNumber())
For Each _pdu In pduBuilder.Create(_client)
_client.SubmitAsync(_pdu)
addtolog(String.Format("id={0} and sequence={1}", i.ToString, _pdu.Sequence)
Next
1. I want to know if i am capturing the sequence number correctly.
2. Has this version solve the issue of tracking async messages
3. What is are the difference between messages catured by OnFullMessageTimedout and OnFullMessageReceived to those ones received in client_evDeliverSm
I am using below code to get sequence number when sending message async to the SMSC but the sequence number that I get back from client_evSubmitComplete is different from the one i get from my code below.
Dim pduBuilder As ISubmitSmBuilder = SMS.ForSubmit()
pduBuilder.From(srcAdr, srcTon, srcNpi)
pduBuilder.To(dstAdr, dstTon, dstNpi)
pduBuilder.Text("Hello")
pduBuilder.Coding(coding)
pduBuilder.DeliveryReceipt()
' pduBuilder.[Set](Sub(sm As SubmitSm) sm.Sequence = seq) ' _client.SequenceGenerator.NextSequenceNumber())
For Each _pdu In pduBuilder.Create(_client)
_client.SubmitAsync(_pdu)
addtolog(String.Format("id={0} and sequence={1}", i.ToString, _pdu.Sequence)
Next
1. I want to know if i am capturing the sequence number correctly.
2. Has this version solve the issue of tracking async messages
3. What is are the difference between messages catured by OnFullMessageTimedout and OnFullMessageReceived to those ones received in client_evDeliverSm