Question

SMS delivery report

  • 11 August 2019
  • 2 replies
  • 2885 views

Do we have a concept of delivery reports (like read receipts in emails ) in RingCentral ApI's. If so, I would like to integrate the RingCentral SMS API in my C# based program and want to receive delivery reports of the SMS sent . Can I be helped with a sample code where such a case was successfully integrated .


2 replies

Userlevel 1

If you want to get the SMS delivery report, save the message Id after sending an SMS message. Then use the Get Message API to read the status of that message. Parse the messageStatus from the response to see if the message was sent successfully or failed. You need to poll again if the message status is "Queued".

Unfortunately, I cannot help with sample code for every single feature you want. This should be simple though.

There are few ways you can do that. Apart from what @Phong Vu said, here is a small snippet of the messageStatus in the API return:

Queued, Sent, Delivered, DeliveryFailed, SendingFailed, Received

https://developers.ringcentral.com/api-reference/SMS/createSMSMessage

"Sent" -- reached SMS provider/carrier, "Delivered" -- reached the recipient.

ref: https://forums.developers.ringcentral.com/questions/1207/message-status.html

If the mobile phone we are sending is switched off, the carrier will tries to deliver within 48 hours and if unsuccessful then it will expires the message and in that case we will get the status as "DeliveryFailed'"

Apart from this, you can use Call Log for reporting the sms

Reply