Skip to main content
Question

Webhook Event Filter For Calls Events

  • November 4, 2023
  • 2 replies
  • 170 views

I've successfully created a webhook, but I'm still not seeing events for the phone I'm testing with. I suspect the filter is not correct. I would like events for all phones in the account. Is this the correct filter?

"eventFilters": [

"/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true",

"/restapi/v1.0/account/~/telephony/sessions"

],


Thanks.


2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • November 6, 2023

This event would tell the system to send telephony events of any phone or phone number under your account.

"/restapi/v1.0/account/~/telephony/sessions"

This event would tell the system to send presence and simple telephony status event of the extension that subscribed for the event.

"/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true"

You test phone or number must be under the account. Double check if you accidentally test your app in sandbox but using your production number or the other way around.


  • Author
  • Known Participant
  • November 8, 2023

Thanks Phong, the issue was the test phone was not created in the sandbox environment. I appreciate your help!