how to decode PDU

Post Reply
msnleon
Posts: 1
Joined: Thu Sep 23, 2021 5:06 am

how to decode PDU

Post by msnleon » Thu Sep 23, 2021 6:06 am

would like to understand how to decode pdu like
https://www.diafaan.com/sms-tutorials/g ... u-decoder/.

tried

byte[] byteArray = System.Text.Encoding.ASCII.GetBytes("0791448720003023240DD0E474D81C0EBB010000111011315214000BE474D81C0EBB5DE3771B");
var a = Inetlab.SMPP.PDU.PduExtension.Deserialize<DeliverSm>(byteArray, EncodingMapper.Default);

but got error: Inetlab.SMPP.Common.SmppReaderException: 'Command 875837495 is not supported'

i saw api document said TPdu, but sorry, did not find reference of TPdu.
would you please help clarify.

thanks
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: how to decode PDU

Post by alt » Thu Sep 23, 2021 5:54 pm

This format is GSM PDU . The Inetlab.SMPP library supports only SMPP PDU.
Post Reply