News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Is there any way catch all VoiceMail events for all users in my company account ?
Tags: voicemail, webhooks, extension
Oct 13, 2022 at 6:37am   •   1 replies  •  0 likes
Zahir Olmez

Hi is there any way to catch all calls to VoiceMail for all users inside our company with super user?

/restapi/v1.0/account/~/extension/~/voicemail This is how I try but "Not allowed subscribe for messages to other extensions% " i get the error.




Request


"eventFilters" => array:2 [

0 => "/restapi/v1.0/account/~/presence"

1 => "/restapi/v1.0/account/~/extension/~/voicemail"

]

"deliveryMode" => array:2 [

"transportType" => "WebHook"

"address" => "......."

]

"expiresIn" => 31556926

]



Could you please help for this ?

1 Answer
answered on Oct 13, 2022 at 4:08pm  

If you need to get voicemail notification for other extensions, the only way is subscribing for the /restapi/v1.0/account/~/telephony/sessions?direction=Inbound event notification. Then when you catch the event, parse it as shown in the example code below

...
// received thru your Webhook callback endpoint
var party = req.body.body.parties[
if (party.extensionId){
  if(party.status.code == "Disconnected"){
    if (party.status.reason == 'Voicemail'){
      // there is a voice mail
      ...
    }
  }
}

 0
on Oct 14, 2022 at 1:07am   •  0 likes

Hi @Phong Vu thank you. I will check and reach here.



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us