Delievery Report

Jul 30, 2013 at 9:56 AM
Edited Jul 30, 2013 at 9:58 AM
how can i recieve Delievery report?
i am sending message successfully and its recieving on my phone but i am not getting delievery report.
here is my code.

class Program
{
    static void Main(string[] args)
    {
        Program p = new Program();
        SmppClient client = new SmppClient();
        var properties = client.Properties;
        properties.SystemID =  "";
        properties.Password = "";
        properties.Port = "";
        properties.Host = "";
        properties.isTransciever = false;
        properties.InterfaceVersion = InterfaceVersion.v34;

        properties.AddressTon = 0;//
        properties.AddressNpi =0;// 
        client.AutoReconnectDelay = 3000;
        client.KeepAliveInterval = 15000;
       //client.MessageDelivered += (s, eArg) =>
       // {
       //     Console.WriteLine ("MessageDelivered", eArg.ShortMessage);
       // };
        client.ConnectionStateChanged += (sender, e) =>

        {
            switch (e.CurrentState)
            {
                case SmppConnectionState.Closed:
                    // Connection to the remove server is lost
                    e.ReconnectInteval = 60000;
                    break;
                case SmppConnectionState.Connected:
                    break;
                case SmppConnectionState.Connecting:
                    break;
            }
        };
        // Start smpp client
        client.Start();
        while (client.ConnectionState != SmppConnectionState.Connected)
        {
            Console.WriteLine(client.ConnectionState + " waiting...");
        }
        //  Console.WriteLine("connection successfull");
        TextMessage message = new TextMessage();
        message.DestinationAddress = "1233444445"
        message.SourceAddress = "000";
        message.Text = "Hello, this is my test message";
        message.RegisterDeliveryNotification = true;
        client.SendMessage(message, 10000);
        client.MessageReceived += new EventHandler<MessageEventArgs>(p.client_MessageReceived);
      client.MessageDelivered += new EventHandler<MessageEventArgs>(p.client_MessageDelivered);
        // client.MessageReceived += p.client_MessageReceived;
        Thread.Sleep(60000);

    }

    private void client_MessageReceived(object sender, MessageEventArgs e)
    {
        TextMessage msg = e.ShortMessage as TextMessage;
        Console.WriteLine(msg.Text); //Display message
    }

    private void client_MessageDelivered(object sender, MessageEventArgs e)
    {
        TextMessage msg = e.ShortMessage as TextMessage;
        Console.WriteLine(msg.Text); //Display message
    }