question

fax12879 avatar image
fax12879 asked Anirban answered

SMS messages with message status DeliveryFailed

I want to update our database any time a messageStatus changes to "DeliveryFailed". The message_store event sends a notification anytime a message is updated, but it does not include any message IDs to fetch the messageStatus.


I know I can fetch the message list and cycle through results to update the status, but this seems inefficient since there is no way of filtering on messageStatus.


Is there a subscription or event that will send a notification with message ID any time delivery fails? If not, what would be the most efficient way to update messages that failed delivery?

sms and text messagingerrors
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered John Wang Deactivated commented
Unfortunately we do not have corresponding notification today for outgoing SMS. But it looks like a good feature request. I will talk to our PMs about it.

For the time being, I believe the best way how it can be supported today is to combine existing message update notifications you mentioned and Message Sync API. So, each time the notification arrives you can call Message-Sync API to identify the list of updated messages since last invocation. See  https://developers.ringcentral.com/legacy-api-reference/index.html#!#RefMessageSync.html
1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

John Wang avatar image John Wang ♦♦ commented ·
Here is some additional information from our prior webinar that covers the nuances of using our Message Sync APIs.

https://grokify.github.io/ringcentral-polling-and-syncing/
0 Likes 0 ·
Anirban avatar image
Anirban answered

Not sure if that if that feature of sending notification with message id for failed status is still introduced or not, but definitely in meantime you can take a look on new API reference docs with Message Sync API : https://developers.ringcentral.com/api-reference/Message-Store/syncMessages

Hope that help

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys