question

Rajarshi Banerjee avatar image
Rajarshi Banerjee asked Phong Vu answered

Webhook subscription issue

I need to subscribe for telephony notification for that I am following
https://github.com/grokify/ringcentral-demos-webhooks
this is my request json
Request JSON:
{
"eventFilters": [
"/restapi/v1.0/account/~/extension/" ],
"deliveryMode":{
"transportType":"WebHook",
"address":"http://localhost:8080/hook";
}}
below is response

_json: {

errorCode: 'SUB-522',

message: 'WebHook responds with incorrect HTTP status. HTTP status is 404',

errors: [Array],

status: '404'

}

What wrong am I doing? Please guide me.

Thanks.

rest api
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

At my first look at the code you provide, the eventFilters is wrong for the telephony session event notification, the address is wrong for local host.

This is the official guide you should follow.

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