This project is read-only.

Receiving Delivery Notifications

Warning: The message content for delivery notifications may differ between network operators. Jamaa Smpp Client delivers all notifications as simple text messages, and you must parse out the message content yourself to extract any additional information. Because the message format can differ, there is good change that you code will break when dealing with a situation in which more than one network operator is involved. As such, the use of delivery notifications is normally not advised in most scenarios.

To receive delivery notification, handle the SmppClient.MessageDelivered event as follows:

SmppClient client = GetSmppClient();
client.MessageDelivered += client_MessageDelivered;

The event handler:

void client_MessageDelivered(object sender, MessageEventArgs e)
{
    TextMessage msg = e.ShortMessage as TextMessage;
    //parse msg.Text for more details
    MessageBox.Show(msg.Text, "Message Delivered");
}

Last edited Apr 17, 2011 at 12:46 PM by bentesha, version 2

Comments

basitexx May 21 at 4:22 PM 
Same here, The message delivered event never fires! and moreover, I can not send/receive Unicode text.

7jojo Mar 6, 2014 at 7:49 AM 
Hello, i have problem. MessageDelivered event does't fire up!


Please leave a comment.