-
Notifications
You must be signed in to change notification settings - Fork 35
Receiving Delivery Notifications
AdhamAwadhi edited this page May 9, 2017
·
1 revision
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");
}