WebHook not receiving calls

  • 1
  • Problem
  • Updated 1 year ago
  • Solved
  • (Edited)
Hi All, I have successfully registered a WebHook for purpose of monitoring incoming calls. I am working against Sandbox environment. I am not receiving any calls on my WebHook. 

I saw similar questions but they were resolved with no further explanation.

My webhook is a Java servlet, I utilized ngrok as advised. I am placing a call to sandbox phone number, then I am dialing extension 101, neither events send a call to my web hook. Here is how my subscription list look like:

{  "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/subscription";,
  "records": [
    {
      "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/subscription/8418023a-3663-40c1-9a2b-f078d20b2...;,
      "id": "8418023a-3663-40c1-9a2b-f078d20b2829",
      "creationTime": "2017-01-10T18:42:50.856Z",
      "status": "Active",
      "eventFilters": [
        "/restapi/v1.0/account/153525004/extension/153525004/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/153525004/extension/153525004/message-store",
        "/restapi/v1.0/account/153525004/extension/153525004/presence/line/presence",
        "/restapi/v1.0/account/153525004/extension/153525004/presence/line/presence?detailedTelephonyState=true",
        "/restapi/v1.0/account/153525004/extension/153525004/presence",
        "/restapi/v1.0/account/153525004/extension/153525004/presence/line",
        "/restapi/v1.0/account/153525004/extension"
      ],
      "expirationTime": "2017-01-17T18:42:50.856Z",
      "expiresIn": 601984,
      "deliveryMode": {
        "transportType": "WebHook",
        "encryption": false,
        "address": "https://33d7f758.ngrok.io/RingCentralTest/RcTest";
      }
    }
  ]
}
Photo of Yigit Karatas

Yigit Karatas

  • 232 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Kobie Williams

Kobie Williams

  • 200 Points 100 badge 2x thumb
Check to see if you have enough calling credits. You are given 500 credits/month this is if you are not a paying customer in your sandbox account.
(Edited)
Photo of Yigit Karatas

Yigit Karatas

  • 232 Points 100 badge 2x thumb
Kobie, thanks for reply. Where should I see my credits? I couldnt find any reference of 'Sandbox credit'. Also I dont think I have sone anything that could spend any kind of credit so far and I am not placing calls from API, I am trying to call my main companay number, expecting it will trigger a call to my subscribed WebHook
Photo of Kobie Williams

Kobie Williams

  • 200 Points 100 badge 2x thumb
In your sandbox if you go into the call logs screen and on any row hover your mouse over the column called result a message bubble will appear letting you know if you have any or not. Also, if you call your company number with your mobile phone you should receive a message stating "Voice mail is full". 
(Edited)
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Here is a sample application I created showing how to use Webhooks with RingCentral: https://github.com/bdeanindy/ringcentral-webhook-basics

This should create eventFilters for each extension in your RingCentral account (which will include detailedTelephonyStatus and display calls in the `activeCalls` property).
Photo of Yigit Karatas

Yigit Karatas

  • 232 Points 100 badge 2x thumb
Thanks! Im checking this at the moment
Photo of Yigit Karatas

Yigit Karatas

  • 232 Points 100 badge 2x thumb
Hey Benjamin, I tried to specify extension on eventFilters but still nothing.  Here is how my newest webhook list:

{  "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/subscription";,
  "records": [
    {
      "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/subscription/edc9c336-4d50-4308-8289-7199c238f...;,
      "id": "edc9c336-4d50-4308-8289-7199c238f395",
      "creationTime": "2017-01-11T22:43:36.703Z",
      "status": "Active",
      "eventFilters": [
        "/restapi/v1.0/account/153525004/extension/101/presence?detailedTelephonyState=true"
      ],
      "expirationTime": "2017-01-18T22:43:36.701Z",
      "expiresIn": 604776,
      "deliveryMode": {
        "transportType": "WebHook",
        "encryption": false,
        "address": "https://33d7f758.ngrok.io/RingCentralTest/RcTest";
      }
    }
  ]
}
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Could you please create a developer support case and provide the link to this conversation for reference?
Photo of Yigit Karatas

Yigit Karatas

  • 232 Points 100 badge 2x thumb
Just did, thanks
Photo of Yigit Karatas

Yigit Karatas

  • 232 Points 100 badge 2x thumb
Problem solved. Extension must be in use(by a physical or softphone) otherwise webhook events are not sent.

Thank you all!
(Edited)
Photo of Benjamin Dean

Benjamin Dean, Alum

  • 8,642 Points 5k badge 2x thumb
Thanks for the update and information, I totally forgot about that requirement. Appreciate you investing time and sharing the results.
Photo of Uzi Aloush

Uzi Aloush

  • 60 Points
I am facing same problem, I subscribed to webhook

Array ( [uri] => https://platform.ringcentral.com/restapi/v1.0/subscription/72905ffc-3bc4-4550-9e58-1b337b63cdc1 [id] => 72905ffc-3bc4-4550-9e58-1b337b63cdc1 [creationTime] => 2017-06-02T00:39:24.557Z [status] => Active [eventFilters] => Array ( [0] => /restapi/v1.0/account/466727023/extension/101/presence?detailedTelephonyState=true ) [expirationTime] => 2017-06-09T00:39:24.557Z [expiresIn] => 604799 [deliveryMode] => Array ( [transportType] => WebHook [encryption] => [address] => https://synpat.com/ringcentral.php ) )


When I cam calling, I dont get any notfication. 

Thanks