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.
Network initiated USSD
Re: Network initiated USSD
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?
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
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!
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
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
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
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?
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
Possible, Error was due to delivery request in SubmitSm.
Please try with
sm.RegisteredDelivery = 0;
Please try with
sm.RegisteredDelivery = 0;