Table of Contents

Receive messages

An SMPP-server sends SMS to SMPP-client by using command DeliverSm. It may contain inbound SMS as well as delivery report.

There is an event evDeliverSm in class SmppClient. The event rises on DeliverSm command arrival. Any method subscribed to that event will receive information about inbound messages.

...

_client.evDeliverSm += OnDeliverSm;

...

private void OnDeliverSm(object o, DeliverSm deliverSm)
{
    if (deliverSm.MessageType == MessageTypes.SMSCDeliveryReceipt)
    {
        _log.Info("Delivery Receipt received");
    }
    else
    {
        _log.Info("Incoming SMS received");
    }
}

The InetLab.SMPP library allows to concatenate received parts of the long message into a single message the same way as mobile phone does. The class MessageComposer is used for that.

If you do not receive inbound messages you may need to look for an answer in according Troubleshooting article.