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?
Hi @Rpbhoir30 yes I'm super admin. I'm trying to as a super admin. Which language were you using ?
I was using PHP langugae.
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.
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.
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
/voicemail is just for the authenticated user extension. Not even super admin role can subscribe for others users.
See my solution from this thread.
Hi @Zahir Olmez ,
Have you logged in with Admin?
I was using password based authentication. But then used JWT authentication and its working perfectly.
Hi @Rpbhoir30 yes I'm super admin. I'm trying to as a super admin. Which language were you using ?
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.
@Phong Vu I have added these events to my subscription for voicemail separate for each extension but it still does not work sometimes.
- [
- '/restapi/v1.0/account/~/extension/~/voicemail',
- '/restapi/v1.0/account/~/extension/~/message-store'
- ]
Is there any way to debug webhook is sent or not for every voice calls in Ringcentral admin?
Its still same..it does not work sometime.
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" ...}}]
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
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