Calls in the queue

Hi,

I am trying to get the call conversation that is currently in the queue using the following scenario:

  1. Login to my pure cloud account
  2. Login to the queue
  3. Verifying the routing status:
    https://api.{{environment}}/api/v2/users/{{userId}}/routingstatus
    {
    "status": "IDLE",
    "startTime": "2016-08-01T15:12:19.298Z"
    }
  4. Place call to the test number.
  5. The call is being answered by the IVR and then transferred to the queue.
  6. Trying to the call conversations:

https://api.{{environment}}/api/v2/conversations/calls
{
"pageSize": 0,
"pageNumber": 1,
"total": 0,
"entities": [],
"selfUri": "/api/v2/conversations/calls?pageSize=0&pageNumber=1",
"firstUri": "/api/v2/conversations/calls?pageSize=0&pageNumber=1",
"lastUri": "/api/v2/conversations/calls?pageSize=0&pageNumber=1",
"pageCount": 0
}

I tried to change my routing state from Idle to Available through PureCloud menu, but I was immediately kicked out the queue.

Any ideas?

Thank you!

The GET /api/v2/conversations/calls resource only returns active calls for the session's user. If you don't have any calls connected to that user, you won't get any results.

To get queue calls, you'll need to use the conversation detail query using the resource POST /api/v2/analytics/conversations/details/query. This will return both historical and current data, so you'll need to filter the query and/or results appropriately to get on the data you're interested in.

I tried to change my routing state from Idle to Available through PureCloud menu, but I was immediately kicked out the queue.

This is expected. You changed your presence from On Queue to a presence that is not On Queue (literally any other presence). More information about routing and presences can be found on the resource center. The article on Agent availability will be a good place to begin.

Sorry,I just want to ask how did step2 happen?
when I go step3 it`s return "Can only change status from NOT RESPONDING to IDLE",
so can you tell me how to change status from OFF_QUEUE to NOT RESPONDING?
Thank you very much!

See the article Understanding Presence. There's a section at the bottom about ACD Routing Status that explains what to expect from and how to use the routing status.

I read it over 3 times,and found the point there...
ashame me....