How to get SequenceNumber from event of MessageDelivered and MessageSent?

Apr 2, 2015 at 12:39 PM
Edited Apr 3, 2015 at 7:15 AM
I started the smpp client and it is connecting to smpp server.
Every thing is working okay except sequence number.
SmppClient client = new SmppClient();
SmppConnectionProperties properties = client.Properties;
properties.SystemID = "mysystemid";
properties.Password = "mypassword";
properties.Port = 2034; //IP port to use
properties.Host = ""; //SMSC host name or IP Address
properties.SystemType = "mysystemtype";
properties.DefaultServiceType = "mydefaultservicetype";

properties.AddressTon = TypeOfNumber.Unknow;
properties.AddressNpi = NumberingPlanIndicator.ISDN;
properties.DefaultEncoding = DataCoding.SMSCDefault;

//Resume a lost connection after 30 seconds
client.AutoReconnectDelay = 3000;

//Send Enquire Link PDU every 15 seconds
client.KeepAliveInterval = 15000;

//Start smpp client
Created event handlers for
I am trying to get sequence number when i am sending message to smpp server to keep record for messages i have sent. I am getting always value ZERO from sequence number.

Here is the code for sending message
                TextMessage objTextMessage = new TextMessage();
                objTextMessage.DestinationAddress = ReceipientNumber;
                objTextMessage.SourceAddress = SenderNumber;
                objTextMessage.Text = Message;
                objTextMessage.RegisterDeliveryNotification = ReceiveDeliveryNotification;
Thanks For Any Help