question

yigit-karatas avatar image
yigit-karatas asked ·

WebHook not receiving calls

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";
      }
    }
  ]
}
topic-default
1 |1000 characters needed characters left characters exceeded

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

kobie-williams avatar image
kobie-williams answered ·
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.
Share
1 |1000 characters needed characters left characters exceeded

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

yigit-karatas avatar image
yigit-karatas answered ·
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
Share
1 |1000 characters needed characters left characters exceeded

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

kobie-williams avatar image
kobie-williams answered ·
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". 
9 comments Share
1 |1000 characters needed characters left characters exceeded

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

In 'Call Log' tab, I see my calls in missed status however hovering mouse over statuses dont pop up a panel. When I call Sanbox company main phone from my cell, I dont get a message stating "Voice mail is full". 
0 Likes 0 · ·
Then its not a call credit issue its something else.
0 Likes 0 · ·
Kobie, the "voice mail is full" message issue should be handled by Support, please create a support case to resolve that problem.

@Yigit: Does the extension ID you're providing in your Webhook eventFilters match the extension you're calling? Have you tried calling the Direct Number for the extension and do you get the same results?
1 Like 1 · ·
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).
1 Like 1 · ·
Just did, thanks
1 Like 1 · ·
Show more comments
yigit-karatas avatar image
yigit-karatas answered ·
Problem solved. Extension must be in use(by a physical or softphone) otherwise webhook events are not sent.

Thank you all!
Share
1 |1000 characters needed characters left characters exceeded

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

benjamin-dean avatar image
benjamin-dean answered ·
Thanks for the update and information, I totally forgot about that requirement. Appreciate you investing time and sharing the results.
Share
1 |1000 characters needed characters left characters exceeded

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

uzi-aloush avatar image
uzi-aloush answered ·
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
Share
1 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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