Page 1 of 1

How to send USSD response

Posted: Tue Jun 03, 2014 1:18 pm
by amara
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,

Re: How to send USSD response

Posted: Fri Jun 06, 2014 7:27 am
by alt
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 })
 );