question

Pramod Kangare avatar image
Pramod Kangare asked ·

Webhook Subscription Event not detects any call notification

We are able to detect call event notification using subscription when we place call using RingOut API.

Code that we used: https://github.com/ringcentral/ringcentral-csharp/tree/master/RingCentral/Subscription


But Subscription not detects call event notification when caller calling from his Phone Device.

So we are trying with webhook subscription as per discussion with ringcentral development team member.

We have implemented webhook subscription with event filter "/restapi/v1.0/account/{accountId}/telephony/sessions".

Below is Url from where we used code example:

https://developers.ringcentral.com/guide/notifications/quick-start/webhook/c-sharp

This code not detect any notification after place call using Ringout or Phone Device. What will be the issue???

Currently we are using sandbox environment with below permissions:

- Read Contacts

- Read Messages

- Read Presence

- Call Control

- Read Accounts

- Ring Out

- Read Call Log

- Webhook Subscriptions

- Edit Presence


webhook subscription
1 comment
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.

Hello @Phong Vu and @Anirban Sen Chowdhary, I noticed you had responded to Pramod's other question. Do you have any insight on this?

Thank you,

Mindy

0 Likes 0 · ·
Phong Vu avatar image
Phong Vu answered ·

Hi,

1. You are using the old C-sharp SDK (deprecated). It still should work correctly but I recommend you to use the latest one.

2. Watching the video I could see that you tested correctly for sandbox and production environments. However, I could not see the notification filter you specified in your code so I don't know if it is a notification at extension level or at company level.

  • Account level: /account/{accountId}/telephony/sessions
  • Extension level: /account/{accountId}/extension/~/telephony/sessions

A. If the filter was set at the extension level, then the problem is that you login the app with the main company number with the extension 101, but in your test, you make a call from your own extension (605 3706083) => no notification for your extension

B. If the filter was set at the account level, then the problem is still unknown to me => Either open a support ticket by sending an email to devsupport@ringcentral.com, or send me an invite for a meeting at phong.vu@ringcentral.com

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

Using Account Level , now able to detect PubNub notification when caller calling from his phone device (Desktop RC Phone or Android RC Phone).


Thank You Phong for your guidance.

0 Likes 0 · ·
Phong Vu avatar image
Phong Vu answered ·

Hi Mindy,

Sorry for the delayed response.

The question is a little bit confusing so I will have to ask you to try to test again as follows:

1. Keep testing with PubNub notification which worked for you when you placed a RingOut call. But with a direct call. If your PubNub app works with both type of calls, then your application permissions and testing account are correct.

2. Test your Webhooks application with the same app's and user's credentials (as you tested on your PubNub app). If this does not work, then the problem is with the Webhooks implementation, NOT the server notification. In this case, make sure your Webhooks implementation is correct by checking if it is set up correctly.


Let me know

2 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.

Hi Phong,

Thank you for the information. I'll talk to my colleague, Pramod.

Thank you!

Mindy

0 Likes 0 · ·

Hi Phong ,


Point 1 : Subscription PubNub notification

PubNub notification works for both sandbox and production only when we place call using Ringout API, but not getting PubNub notification when caller calling from his phone device(Android RC Phone , RC Desktop Phone, etc) in Production Environment.

Please see below video :

Removed link due to security risk!

If we get PubNub notification in Production Environment when caller calling from his device, then we don't need to implement webhook notification (Point 2).


App Permissions:

- Read Contacts

- Read Messages

- Read Presence

- Call Control

- Read Accounts

- Ring Out

- Read Call Log

- Webhook Subscriptions

- Edit Presence


Is any app permission missing??


Please guide us.


Thanks and Regards,

Pramod Kangare

0 Likes 0 · ·

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.