article

Byrne Reese avatar image
Byrne Reese posted

Cannot subscribe to voicemail webhooks for other extensions (error SUB-405)

Developers may find that they can easily subscribe to webhooks to be notified in the event that they personally receive a voicemail, but cannot receive the same event for another user or coworker. This is done using the Voicemail Message event filter.

The syntax of this event filter is slightly misleading:

 /restapi/v1.0/account/{accountId}/extension/{extensionId}/voicemail

It implies that by specifying an extension Id in the URL, one can subscribe to voicemails for that extension. But that is not necessarily the case. And when, for security and privacy reasons, one is not allowed, you will receive the following error:

 { 
     "errorCode": "SUB-405" ,
     "message": "Not allowed subscribe for messages to other extensions",
     "errors": [{ 
         "errorCode": "SUB-405",
         "message": "Not allowed subscribe for messages to other extensions" 
     }] 
 } 

When using this specific event filter, you can only really subscribe to your own voicemails, and developers should use the following event filter instead:

 /restapi/v1.0/account/~/extension/~/voicemail

A workaround does exist...

There exists another way to be notified of an incoming voicemail for another user: using a message store event filter.

For this particular problem related to voicemail event, The customer can get updated/notified when another extension receives a voicemail by subscribing to the below event. To be notified of a new voicemail for another extension, try the following event filter:

 /restapi/v1.0/account/~/extension/63307558007/message-store?type=Voicemail
webhooksvoicemail
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

Article

Contributors

ByrneReese contributed to this article