question

Zahir Olmez avatar image
Zahir Olmez asked Zahir Olmez commented

Is there any way catch all VoiceMail events for all users in my company account ?


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 ?

webhooksvoicemailextension
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered Zahir Olmez commented

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
      ...
    }
  }
}
1 comment
1 |3000

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

Zahir Olmez avatar image Zahir Olmez commented ·

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

0 Likes 0 ·

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