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
call queue name is not being included in webhook events
Tags: webhooks
Mar 11, 2024 at 8:00pm   •   2 replies  •  0 likes
scdealer

Hi. I'm subscribed to the below event filter to get live call data

/restapi/v1.0/account/~/telephony/sessions

I remember a couple years back, the webhook that sent these events out included the name of the call queue chosen by the incoming caller. press1 for sales, 2 for payments, 3 for support, etc.

i'm trying to build a real time app that allows us to know what the caller has pressed before we answer the phone. This worked fine a couple years ago since the webhook events used to provide the call queue name.

Fast forward to today. None of the incoming call session events from the webhook provide the call queue that the caller has selected and is waiting in. Am I missing something?

Thanks

2 Answers
answered on Mar 12, 2024 at 8:28pm  

Hi Phong. Thanks for your reply. Yes. You were right about the incoming caller dialing into the company main number IVR and then selecting an IVR option. Not calling directly to a call queue. From your example. It looks like the answer is the same either way. That an extensionId is provided that corresponds to an IVR extensionId or call queue extensionId. It seems that you did get me to something that I can make work. My webhook notifications are NOT sending over the IVR menu name or call queue name. After seeing what you posted. I realized that the parties[0].to.extensionId contains an id that corresponds to the call queue name or ivr option that the caller has pressed. I just have to know the name that corresponds to the extensionId that's being provided to solve for the answer. The name and phone never updates and just remains as "Main IVR Menu" throughout all of the event notifications.

Would this be something that is fixable? I did used to get the IVR/Queue name included in my notifications.

Picture below. The extensionId DOES update and correspond to a callQueue that the caller is sent to after they choose an option inside the IVR. The name field never updates and just remains "Main IVR Menu" That's why I didn't find it sooner. Thanks
screenshot-2024-03-12-232031.png

PS my call queues are named the same as my IVR options, that's why I refer to them interchangably.


 0
answered on Mar 12, 2024 at 7:22am  

What you explained in your question is not a call queue call. It sounds like an IVR option.

Here is an example of a telephony session event of an incoming call to a call queue and you should be able to see the call queue name.

{
  "uuid": "1828384886560605075",
  "event": "/restapi/v1.0/account/80964XXXX/extension/6249888XXXX/telephony/sessions",
  ...
  "body": {
    "sequence": 3,
    ...
    "parties": [
      {
        "accountId": "80964XXXX",
        "extensionId": "6249888XXXX", // Call queue extension id
        "id": "p-a0d7bf2071adez18e3304bdc3z2a513480000-2",
        "direction": "Inbound",
        "to": {
          "phoneNumber": "+1209248XXXX", // Call queue direct number
          "name": "My demo queue", // Call queue name
          "extensionId": "6249888XXXX" // Call queue extension id
        },
        "from": {
          "phoneNumber": "+1650224XXXX"
        },
        "status": {
          "code": "Setup",
          "rcc": false
        },
        ...
      }
    ],
    "origin": {
      "type": "Call"
    }
  }
}

But if you really meant a call to an IVR, then here is an example of a telephony session event of an incoming call to an IVR menu extension.

{
  "uuid": "572214196799892212",
  "event": "/restapi/v1.0/account/80964XXXX/extension/6235322XXXX/telephony/sessions",
  ...
  "body": {
    "sequence": 3,
    ...
    "parties": [
      {
        "accountId": "80964XXXX",
        "extensionId": "6235322XXXX", // IVR extension id
        "id": "p-a0d17b907ef0dz18e331190caz2a569090000-2",
        "direction": "Inbound",
        "to": {
          "phoneNumber": "+1209788XXXX", // IVR direct number
          "name": "Paco IVR", // IVR menu name
          "extensionId": "6235322XXXX" // IVR extension id
        },
        "from": {
          "phoneNumber": "+1650224XXXX",
          "name": "WIRELESS CALLER"
        },
        "status": {
          "code": "Setup",
          "rcc": false
        },
        ...
      }
    ],
    "origin": {
      "type": "Call"
    }
  }
}

 1



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