smpp delivery report

Ranoy picture Ranoy · Jan 6, 2012 · Viewed 10k times · Source

How to check for the delivery report of the sent message. I am using PHP and I have the smpp account. Can somebody help me with the checking of delivery report. Will I get an delivery report as message like we get in our mobile. Or the status of the send function will do for it?

Answer

michael.bochkaryov picture michael.bochkaryov · Jan 13, 2012

Using SMPP you can retrieve delivery report in the following ways.

First choice is to set registered_delivery parameter to 1 when you send submit_sm PDU. This case SMSC should send you deliver_sm PDU with esm_class = 0x04 containing delivery report.

Other way is to request delivery status with query_sm command but this may generate more traffic if polling SMSC too often.