This project is read-only.

I look for a QuerySm example, Please Help thanks!!!

Jun 15 at 2:36 AM
Edited Jun 15 at 2:42 AM
This is my test code, but not work, Please Help Many thanks!
         public void QuerySm( int sms_id) {
            try {
                SMPPReconnect();
                var req = new SmppQuerySm() {
                    SourceAddress = SourceAddress,
                    SourceAddressNpi = AberrantSMPP.Packet.Pdu.NpiType.National,
                    SourceAddressTon = AberrantSMPP.Packet.Pdu.TonType.National,
                    //NO SMPP Message Id
                    SequenceNumber = Convert.ToUInt32(sms_id) //SMS_ID
                };
                client.SendPdu(req);
            }
            catch (Exception ex) {
                throw new Exception(ex.InnerException.Message);
            }


        }

         public void client_OnQuerySmResp(object source, AberrantSMPP.EventObjects.QuerySmRespEventArgs e) {
            try {
                var res = e.ResponsePdu as SmppQuerySmResp;
                Debug.WriteLine(res.MessageStatus);
                respMsg = res.MessageId + " " + res.MessageStatus;
            }
            catch (Exception ex) {
                throw new Exception(ex.Message);
            }
            finally {
            }
        }