question

Diego Pastor avatar image
Diego Pastor asked Phong Vu answered

Cannot answer calls from a Queue with the API endpoint

Hi community.

We're currently creating an App that allows the user to login into ring central using the Authorization code flow with PKCE.

In that app we want to show a small modal window when a call gets directed to the logged in user and then have the ability to either answer or forward the call.

When the call is direct or using a user extension we have no issue to call the answer call API endpoint, but when the call is to a Queue and a phone start ringing, then this endpoint doesn't work even if the call is in Proceeding state.

{
    "errors": [
        {
            "errorCode": "TAS-118",
            "message": "Wrong state to answer a call"
        }
    ]
}


This is the endpoint that we call:

POST /restapi/v1.0/account/~/telephony/sessions/s-a1d14791c288az17fdbc0d5b5z10ad0000/parties/p-a1d14791c288az17fdbc0d5b5z10ad0000-5/answer
{
    "deviceId": "801564933004"
}

Is there a limitation to answer calls when they are source by queues? as I explained before, if the call is direct then the answer endpoint works correctly.

Another annotation may be that if we actually use the ignore queue call endpoint, then it does work correctly with the same path parameters.

POST /restapi/v1.0/account/~/telephony/sessions/s-a1d14791c288az17fdbc0d5b5z10ad0000/parties/p-a1d14791c288az17fdbc0d5b5z10ad0000-5/ignore
{
    "deviceId": "801564933004"
}
rest apicall queueserrors
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

I could say that this is currently not supported. You will always get 409 Conflict even when the call status in a call queue is still in "Proceeding". I have observed this issue earlier too and have no solution for this.

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