Page 1 of 1

How To get PDU created whle sending SubmitSM and on Submitsm Response

Posted: Fri Sep 18, 2020 7:34 am
by vineet
Hi,

byte srcTon = byte.Parse("0");
byte srcNpi = byte.Parse("0");
string srcAdr = "xxxxx";

byte dstTon = byte.Parse("1");
byte dstNpi = byte.Parse("1");
string dstAdr = "xxxxxxx";

ISubmitSmBuilder builder = SMS.ForSubmit()
.From(srcAdr, srcTon, srcNpi)
.To(dstAdr, dstTon, dstNpi)
.Coding(coding)
.Text("Heello")
.ExpireIn(TimeSpan.FromDays(2))
.DeliveryReceipt();
SubmitMode mode = SubmitMode.ShortMessage;
switch (mode)
{
case SubmitMode.Payload:
builder.MessageInPayload();
break;
case SubmitMode.ShortMessageWithSAR:
builder.ConcatenationInSAR();
break;
}

//Here before submiting can we get the pdu created

_client.SubmitAsync(builder);

And is there any function to decode pdu to object.

Thanks

Re: How To get PDU created whle sending SubmitSM and on Submitsm Response

Posted: Tue Sep 22, 2020 8:34 pm
by alt