Hi,
We came across your .net SMPP library, which works well for some of our purposes. We would like to send instant response to a user initiated USSD message in the same session. Kindly assist us with this.
Thanks,
How to send USSD response
Re: How to send USSD response
try this code
Code: Select all
string shortCode = "7777";
byte ussdSessionId = 0;
byte sessionEnd = 1;
_client.Submit(SMS.ForSubmit()
.ServiceType("USSD")
.From(shortCode, 3, 9)
.To("+79171234567")
.Text("USSD text")
.Coding((DataCodings)0x15)
.AddParameter(OptionalTags.UssdServiceOp, new byte[] { 17 }) //PSSR response
.AddParameter(OptionalTags.ItsSessionInfo, new byte[] { ussdSessionId, sessionEnd })
);