Page 1 of 1

Network initiated USSD

Posted: Thu Mar 14, 2013 1:51 pm
by prog019
Dears,

I want to send network initiated USSD to the subscriber.

But I'm getting in mobile normal SMS.

My code:

SubmitSm req = new SubmitSm(tbServiceType.Text,
byte.Parse(tbSrcAdrTON.Text),
byte.Parse(tbSrcAdrNPI.Text),
tbSrcAdr.Text,
byte.Parse(tbDestAdrTON.Text),
byte.Parse(tbDestAdrNPI.Text),
tbDestAdr.Text);
req.Optional.Add(new TLV(0x0501, 1, new byte[] { 2 }));
SubmitSmResp resp = client.Submit(req);

Please help.

Re: Network initiated USSD

Posted: Thu Mar 14, 2013 6:39 pm
by alt
Hello prog019,

It is difficult to provide working USSD example. This solution is SMSC specific.
Did you ask them for documentation how they provide USSD over SMPP?

Re: Network initiated USSD

Posted: Fri Mar 15, 2013 5:47 am
by prog019
Dear Alt,

In current time I can receive and reply request.
But I can't send Network initiated request to the mobile.

If I get in first part of user request 90, this means, than this is sample USSD reqiest, if I get 72: this is a answer for USSD menu.

I have only this rules.

What you think about this?

Thanks in advance!

Re: Network initiated USSD

Posted: Tue Mar 26, 2013 4:57 pm
by alt
Dear prog019,

In what field you receive values 90 and 72?

For Network initiated request that doesn't assume response from the user you can try to set TLV parameter
ussd_service_op = 3

Re: Network initiated USSD

Posted: Tue Jun 18, 2013 8:16 am
by huiz84
Hi ,

i am trying to do a network initiate USSD push.

SubmitSm sm = new SubmitSm();
sm.ServiceType = "USSD";
sm.UserDataPdu.ShortMessage = _client.GetMessageBytes("Hellow Testing", DataCodings.Default);
sm.SourceAddr = "1234";
sm.SourceAddrTon = 0;
sm.SourceAddrNpi = 1;
sm.DestAddr = "123456789";
sm.DestAddrTon = 0;
sm.DestAddrNpi = 1;
sm.DataCoding = DataCodings.Default;
sm.RegisteredDelivery = 1;

sm.Optional.Add(new TLV(0x0501, new byte[] { 2 }));
sm.Optional.AddMoreMessagesToSend(false);

SubmitSmResp resp = _client.Submit(sm);

FYI.....

Sent data:0000004e000000040000000000000004555353440000013636393939000001363031313130383430323034000000000000010000000e48656c6c6f772054657374696e6705010001010426000100
3:37:27 PM: TRACE: 11: (SmppClient) Received data:00000010800000040000004500000004
3:37:27 PM: DEBUG: 25: (SmppClient) PDU Received: SubmitSmResp, Length: 16, Status: ESME_RSUBMITFAIL, Sequence: 4

may i know how to use submit_sm to inititate USSD push to my testing mobile no?

Re: Network initiated USSD

Posted: Mon Jun 24, 2013 8:47 pm
by alt
Possible, Error was due to delivery request in SubmitSm.
Please try with
sm.RegisteredDelivery = 0;