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
Webhook only works for missed calls not for Voicemails
Tags: webhooks, voicemails
Feb 24, 2022 at 11:59am   •   4 replies  •  0 likes
sneha-rao

We have created Webhook Subscription for getting missed calls.

We are using "/restapi/v1.0/account/~/telephony/sessions?direction=Inbound&missedCall=true" to get all missed calls/Voicemails.

However, I am not able to find "Voicemail" logs in the results. I see them in the "Call Log" page of RingCentral, but not the API call-log results.

Webhooks are working only for missed calls not for voice calls. Do i have to add another eventfileter for Voicemails?

4 Answers
answered on Oct 13, 2022 at 10:32am  

Hi @Rpbhoir30 yes I'm super admin. I'm trying to as a super admin. Which language were you using ?


 0
on Oct 13, 2022 at 12:44pm   •  0 likes

I was using PHP langugae.

answered on Mar 3, 2022 at 7:27am  

I ran my test today and the voicemail event notification is working again as normal. Not sure how and when it was fixed. Can you run your app again and let me know if it still does not work for you.


 0
on Mar 4, 2022 at 7:52am   •  0 likes

Thank you @Phong Vu for replaying.

I am using

$r = $platform->post('/subscription', array(
"eventFilters" => array(
"/restapi/v1.0/account/~/telephony/sessions?direction=Inbound&missedCall=true",
"/restapi/v1.0/account/~/extension/~/voicemail",
"/restapi/v1.0/account/~/extension/1209292019/voicemail",
"/restapi/v1.0/account/~/extension/1209293019/voicemail",
"/restapi/v1.0/account/~/extension/1209302019/voicemail",
"/restapi/v1.0/account/~/extension/1209304019/voicemail",
"/restapi/v1.0/account/~/extension/1310230019/voicemail",
"/restapi/v1.0/account/~/extension/1310250019/voicemail",
"/restapi/v1.0/account/~/extension/1717554019/voicemail",
"/restapi/v1.0/account/~/extension/989910019/voicemail"
),

It works great for missed calls. but it doesn't work for voicemail sometimes. Not sure why voicemails is not sent sometimes.

on Oct 13, 2022 at 6:56am   •  0 likes

Hi @sneha-rao I'm trying to subsicribe voicemail event in RC .

I'm getting this error. How did you overcome this error?

"Not allowed subscribe for messages to other extensions%"

array:3 [

"eventFilters" => array:2 [

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

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

]

"deliveryMode" => array:2 [

"transportType" => "WebHook"

"address" => "...."

]

"expiresIn" => 31556926

]

Thank you

on Oct 13, 2022 at 4:59pm   •  0 likes

/voicemail is just for the authenticated user extension. Not even super admin role can subscribe for others users.

See my solution from this thread.

on Oct 13, 2022 at 9:04am   •  0 likes

Hi @Zahir Olmez ,

Have you logged in with Admin?

I was using password based authentication. But then used JWT authentication and its working perfectly.

on Oct 13, 2022 at 10:32am   •  0 likes

Hi @Rpbhoir30 yes I'm super admin. I'm trying to as a super admin. Which language were you using ?



on Mar 4, 2022 at 7:55am   •  0 likes

I also observed that sometimes it does not work. But can you confirm if it works now? I need to collect inputs for the team to investigate the problem.

on Mar 13, 2022 at 6:33pm   •  0 likes

@Phong Vu I have added these events to my subscription for voicemail separate for each extension but it still does not work sometimes.

  
  1. [
  2. '/restapi/v1.0/account/~/extension/~/voicemail',
  3. '/restapi/v1.0/account/~/extension/~/message-store'
  4. ]

Is there any way to debug webhook is sent or not for every voice calls in Ringcentral admin?

on Mar 4, 2022 at 12:14pm   •  0 likes

Its still same..it does not work sometime.

answered on Mar 1, 2022 at 8:55am  

Confirm that this is an issue (it happened before and was fixed and now it happens again). I will report the issue to the dev team. Meanwhile, you can workaround this by subscribe for the telephony/sessions event and detect voicemail via the event payload

...parties[{...status: { code:"Voicemail" ...}}]


 0
answered on Feb 24, 2022 at 8:56pm  

Hi @sneha-rao
From what I remember, voicemail data is not sent over the telephony session event filter
There is a separate event filter for voicemails
https://developers.ringcentral.com/api-reference/Voicemail-Message-Event
This will give you notifications related to new new voice mail, voicemails read, voicemail deleted
So you will have to create a subscription with 2 event filters and add your logic to handle events accordingly

Hope this is helpful


 0



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