Skip to main content

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 ?

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
...
}
}
}

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


Reply