messageComposer and messages with ReferenceNumber is 0
-
- Posts: 85
- Joined: Thu Jun 20, 2019 9:34 am
messageComposer and messages with ReferenceNumber is 0
i am using an inetlab tester.
the messages are with ReferenceNumber ==0 (se picture)
how does the composer concat the correct parts in this case?
Thanks!
the messages are with ReferenceNumber ==0 (se picture)
how does the composer concat the correct parts in this case?
Thanks!
Re: messageComposer and messages with ReferenceNumber is 0
For MessageComposer ReferenceNumber=0 is same value as any other. It tries to combine the parts with ReferenceNumber =0. It is important that at the same time there is no anther concatenated message with 0 reference number. If it happen,
you could get a message text out of mixed parts from two messages or in worst case an IndexOutOfRangeException.
Therefore, you need to use Create(SmppClientBase) method when you create SMS parts with SMS.ForSubmit builder. It sets next reference number from client.SequenceGenerator for all parts.
If you use Create(EncodingMapper) method instead, ReferenceNumber keeps 0 value.
I hope I have understood your question, if not please provide more information about the issue.
you could get a message text out of mixed parts from two messages or in worst case an IndexOutOfRangeException.
Therefore, you need to use Create(SmppClientBase) method when you create SMS parts with SMS.ForSubmit builder. It sets next reference number from client.SequenceGenerator for all parts.
If you use Create(EncodingMapper) method instead, ReferenceNumber keeps 0 value.
I hope I have understood your question, if not please provide more information about the issue.
-
- Posts: 85
- Joined: Thu Jun 20, 2019 9:34 am
Re: messageComposer and messages with ReferenceNumber is 0
Thanks its more clear now
-
- Posts: 85
- Joined: Thu Jun 20, 2019 9:34 am
Re: messageComposer and messages with ReferenceNumber is 0
i tried to do :
but still the Refernece number is 0
should i do something else too?
Code: Select all
_client.Submit(builder.Create(EncodingMapper.Default));
should i do something else too?
Re: messageComposer and messages with ReferenceNumber is 0
did you try:
or
Code: Select all
var parts = builder.Create(_client);
Code: Select all
_client.Submit(builder);
-
- Posts: 85
- Joined: Thu Jun 20, 2019 9:34 am
Re: messageComposer and messages with ReferenceNumber is 0
i tried
but still the Reference on the server side is 0
Code: Select all
var parts = builder.Create(_client);
IList<SubmitSmResp> resp = await _client.Submit(builder);
Re: messageComposer and messages with ReferenceNumber is 0
I cannot reproduce your case.
Could you send me library log in Verbose log level? https://docs.inetlab.com/smpp/v2/articles/tracing.html
I need to check what data library sends from your application.
Could you send me library log in Verbose log level? https://docs.inetlab.com/smpp/v2/articles/tracing.html
I need to check what data library sends from your application.