cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
858
Views
15
Helpful
5
Replies

No telephony_calls events after registering webhook

daneccher
Level 1
Level 1

I have successfully registered a webhook with two approaches, postman and a Python program I have running at home behind ngrok. I have used the List Webhooks function on Cisco's website (https://developer.webex.com/docs/api/v1/webhooks/list-webhooks) to make certain it is there, and it outputs:

{
"items": [
  {
      "id": "Y2lzY29zcGFyazovL3VzL1dFQkhPT0svZjFhMTAwNjMtNmIwZS00ZmE2LTljYjYtNThhMThi........",
      "name": "I am going to work",
      "targetUrl": "https://269b-2601-283-8400-43f0-ecdf-819e-9d0b-458f.ngrok.io/routingclient",
      "resource": "telephony_calls",
      "event": "all",
      "orgId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi8wOTNkMzZlZi1jM2U4LTRjZm.......................",
      "createdBy": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9jMDhjNTE1OS0xYzNhLTRhYmYtODAxZS0zMjJmNWEx.......",
      "appId": "Y2lzY29zcGFyazovL3VzL0FQUExJQ0FUSU9OL0NmMzkyNWU5NDFmMzhhYTc0M2Y0MmFiNzcwZmZhZjFhNTIyMjcxZDI5OTQ4NDhjNjk2YWMwYTEwN2Q........",
      "ownedBy": "creator",
      "status": "active",
      "created": "2022-02-25T06:24:40.585Z"
    }
  ]
}

 

I place calls into Webex Calling, I do not see any telephony_calls events (or events of any kind) show up on my end. I have tested my program with a basic test application on postman, and my application receives events that are sent from there. I have all the licensing for Webex Calling Professional, and I am a full admin.

Any ideas?

5 Replies 5

James McMichael
Level 1
Level 1

Not sure how much further you got with this, but in my own experimentation you have to remember the following with Webhooks:

1. The target URL must have a publicly signed CA certificate that the Webex API will trust,
2. Webhooks for the resource telephony_calls will only return data relating to the creator, i.e. you have to be enabled for Webex Calling,
3. The telephony_calls webhook is for Webex Calling only, it only generates data for PSTN calling via Webex Calling (including Local Gateway),
4. You have to respond to the Webhook (not applicable in your case as you aren't seeing a hit), with some form of 200. Failure to do so will get your Webhook deactivated after a set amount of hits,

5. Easiest way to create a test webhook for your own User ID is to use the Webex Developer Portal and submit the POST request (https://developer.webex.com/docs/api/v1/webhooks/create-a-webhook)

Instead of ngrok I have found using Pipedream (https://pipedream.com) to be a great way of handling Webex webhooks as well as using Integrations using OAuth.

dtibbe
VIP
VIP

Are you sure, ngrok is working correctly?

 

I just tried on my own (using https://webhook.site/ as target, also with telephony_calls and all.

Both incoming and outgoind calls showed up (each with created and deleted).

I am encouraged that you were able to get it to work. Sadly, I tried webhook.site as well, and I am not seeing the messages when I place calls into the system. I am starting to thing we may have an issue with our tenant, I am going to explore that a bit. I appreciate the suggestions.

Frequently I forget that the Ngrok URL changes each time you launch Ngrok, and the webhook's target URL needs to be updated to match...

The fact that I can send data via postman to ngrok and receive it with my application indicates to me ngrok is working, but I will try webhook.site to see if I get better results. I have not seen any configuration items in the Webex Admin Portal, but if there is something I should check, please let me know.

Getting Started

Welcome to the Webex Community. This is your home to ask questions, share knowledge, and attend live webinars.