Network initiated USSD

.NET library for SMPP protocol
Locked
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Network initiated USSD

Post by prog019 » Thu Mar 14, 2013 1:51 pm

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.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Network initiated USSD

Post by alt » Thu Mar 14, 2013 6:39 pm

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?
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Re: Network initiated USSD

Post by prog019 » Fri Mar 15, 2013 5:47 am

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!
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Network initiated USSD

Post by alt » Tue Mar 26, 2013 4:57 pm

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
huiz84
Posts: 3
Joined: Mon Jun 17, 2013 8:26 am

Re: Network initiated USSD

Post by huiz84 » Tue Jun 18, 2013 8:16 am

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?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Network initiated USSD

Post by alt » Mon Jun 24, 2013 8:47 pm

Possible, Error was due to delivery request in SubmitSm.
Please try with
sm.RegisteredDelivery = 0;
Locked