Page 1 of 1
Get the full PDU before sending a message?
Posted: Wed Apr 29, 2020 1:04 pm
by AG70
Hi,
How to get the full Submit PDU before
or after is at
Thanks,
AG
Re: Get the full PDU before sending a message?
Posted: Wed Apr 29, 2020 1:25 pm
by alt
you can create PDU list from builder.
Code: Select all
var pduList = builder.Create(_client);
Please note, this creates PDU instances with Header.Sequence = 0. The sequence will be generated when you call SubmitAsync method. You can also generate next one with _client.SequenceGenerator.
Re: Get the full PDU before sending a message?
Posted: Wed Apr 29, 2020 2:51 pm
by AG70
Hi,
Thanks for your help.
I am looking for the full PDU like for example UCS2 PDU: 0000003F00000004000000000000000C000101393732353036333838383633000101393732353432303038303830000000000000000008000605D005D005D0
Re: Get the full PDU before sending a message?
Posted: Wed Apr 29, 2020 3:55 pm
by alt
You can use Serialize extension method
https://docs.inetlab.com/smpp/v2.8/api/ ... dingMapper_
Code: Select all
byte[] data = pdu.Serialize(_client.EncodingMapper);
Re: Get the full PDU before sending a message?
Posted: Wed Apr 29, 2020 6:31 pm
by AG70
Hi,
Many Thanks for your help.
AG