question

fax12879 avatar image
fax12879 asked ·

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?
topic-default
1 |1000 characters needed characters left characters exceeded

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 ·
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 Share
1 |1000 characters needed characters left characters exceeded

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

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 Sen Chowdhary avatar image
Anirban Sen Chowdhary 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

Share
1 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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