News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Webhook receiving events only when call placed on extensions direct number
Tags: webhooks
Jan 31, 2017 at 7:20am   •   1 replies  •  0 likes
yigit-karatas

Ringcentral Community,

I am finally in production with my app however I am having an issue that did not happen on sandbox. My app is mainly responsible from handling webhook subscriptions and I am expecting to receive all events on calls for all active user extensions. So far so good, subscription is successfully made but I receive events on webhook only when I dial an extensions direct number. Am I doing something wrong in subscription? Or is this related to an account setting? I know that there are several phone numbers that are linked to different extensions at different times. I thought one subscription will be able to handle it all since subscription is made by extension id. Please help me understand what im missing here. Many thanks!


Application name: JLimoGUI

App Key: 872ZZqtFTZ6oHDVDqVDnmw


Here is my subscription:

{  "uri": "https://platform.ringcentral.com/restapi/v1.0/subscription";,
  "records": [
    {
  
      "uri": "https://platform.ringcentral.com/restapi/v1.0/subscription/b8bc1c21-d93d-4b41-ade0-3c1583fac4a1";,
      "id": "b8bc1c21-d93d-4b41-ade0-3c1583fac4a1",
      "creationTime": "2017-01-30T14:40:52.007Z",
      "status": "Active",
      "eventFilters": [
        "/restapi/v1.0/account/1304002021/extension/1024890020/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1013170020/message-store",
        "/restapi/v1.0/account/1304002021/extension/1013169020/presence",
        "/restapi/v1.0/account/1304002021/extension/1024889020/presence",
        "/restapi/v1.0/account/1304002021/extension/1013169020/presence/line",
        "/restapi/v1.0/account/1304002021/extension/1304002021/presence/line/presence?detailedTelephonyState=true",
        "/restapi/v1.0/account/1304002021/extension/1304005021/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1024889020/message-store",
        "/restapi/v1.0/account/1304002021/extension/1013170020/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1013170020/presence/line",
        "/restapi/v1.0/account/1304002021/extension",
        "/restapi/v1.0/account/1304002021/extension/1013171020/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1304005021/message-store",
        "/restapi/v1.0/account/1304002021/extension/1013171020/message-store",
        "/restapi/v1.0/account/1304002021/extension/1013170020/presence",
        "/restapi/v1.0/account/1304002021/extension/1304002021/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1304002021/presence",
        "/restapi/v1.0/account/1304002021/extension/275080027/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1013169020/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1304005021/presence",
        "/restapi/v1.0/account/1304002021/extension/1013171020/presence/line",
        "/restapi/v1.0/account/1304002021/extension/1013171020/presence",
        "/restapi/v1.0/account/1304002021/extension/1304005021/presence/line",
        "/restapi/v1.0/account/1304002021/extension/275080027/message-store",
        "/restapi/v1.0/account/1304002021/extension/1024890020/message-store",
        "/restapi/v1.0/account/1304002021/extension/1013169020/message-store",
        "/restapi/v1.0/account/1304002021/extension/1024889020/presence?detailedTelephonyState=true&sipData=true",
        "/restapi/v1.0/account/1304002021/extension/1024889020/presence/line",
        "/restapi/v1.0/account/1304002021/extension/1304002021/message-store",
        "/restapi/v1.0/account/1304002021/extension/275080027/presence/line",
        "/restapi/v1.0/account/1304002021/extension/1024890020/presence",
        "/restapi/v1.0/account/1304002021/extension/275080027/presence",
        "/restapi/v1.0/account/1304002021/extension/1024890020/presence/line",
        "/restapi/v1.0/account/1304002021/extension/1304002021/presence/line/presence",
        "/restapi/v1.0/account/1304002021/extension/1304002021/presence/line"
      ],
      "expirationTime": "2017-02-06T14:40:52.007Z",
      "expiresIn": 517672,
      "deliveryMode": {
  
        "transportType": "WebHook",
        "encryption": false,
        "address": "https://somethingsomething/PBXService/Ringcentral";
      }
    }
  ]
}



1 Answer
answered on Jan 31, 2017 at 11:59am  
Hello Yigit,

I just tested this using both my Sandbox and Production accounts.

When I dialed the Main Company Number and then entered the extension (for a user in production who does/does not have a Direct Number configured), I received Webhook events (while using eventFilters for presence?detailedTelephonyStatus=true).

You said, "So far so good, subscription is successfully made but I receive events on webhook only when I dial an extensions direct number. Am I doing something wrong in subscription? Or is this related to an account setting?".

It is possible (and you could contact Support to check if the extensions/users are configured properly).

I would make sure:

1. The User has completed activation
2. Verify the user/extension is configured to for Presence to be visible

See if either of those are causing issues, since those are the only two things I can think of since I am not seeing this in using any configuration to recreate the issue you've described.

Let me know if that helps.

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us