question

yigit-karatas4096 avatar image
yigit-karatas4096 asked uzi-aloush5686 answered

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";

}

}

]

}

webhooks
1 |3000

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

kobie-williams4026 avatar image
kobie-williams4026 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.
1 |3000

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

yigit-karatas4096 avatar image
yigit-karatas4096 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
1 |3000

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

kobie-williams4026 avatar image
kobie-williams4026 answered yigit-karatas4096 commented
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
1 |3000

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 commented ·
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 ·
benjamin-dean avatar image benjamin-dean commented ·
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 ·
yigit-karatas4096 avatar image yigit-karatas4096 commented ·
Just did, thanks
1 Like 1 ·
yigit-karatas4096 avatar image yigit-karatas4096 commented ·
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 ·
kobie-williams4026 avatar image kobie-williams4026 commented ·
Then its not a call credit issue its something else.
0 Likes 0 ·
Show more comments
yigit-karatas4096 avatar image
yigit-karatas4096 answered
Problem solved. Extension must be in use(by a physical or softphone) otherwise webhook events are not sent.

Thank you all!
1 |3000

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.
1 |3000

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

uzi-aloush5686 avatar image
uzi-aloush5686 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
1 |3000

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys