Hayato | 2021-12-24 00:50:08 UTC | #1
Hi Team, I want to develop playback recorded audio interface like Genesys client interface that is search with criteria of agent ID, ANI or specific date and time. My question quite general, but I Iwant to confirm how to do it.
Hayato | 2021-12-24 00:56:41 UTC | #2
Sorry my query is poor and add more comment. my image is that, Search recorded audio by Agent ID , ANI, DNIS or others, and click target audio to get URL and open the URL by browser and play audio.
anon11147534 | 2021-12-24 14:10:53 UTC | #3
Hi,
You could use the POST /api/v2/analytics/conversations/details/query endpoint to query with conversations with those particular details. This query is limited to an interval of 31 days. The analytics query builder is helpful for building these queries. The following query could be used with an OR filter on userId, ani and dnis:
{
"interval": "2021-12-03T00:00:00.000Z/2021-12-25T00:00:00.000Z",
"order": "asc",
"orderBy": "conversationStart",
"paging": {
"pageSize": 25,
"pageNumber": 1
},
"segmentFilters": [
{
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "userId",
"operator": "matches",
"value": "979b4e38-81a7-4678-a5ce-1d4028cb7db9"
},
{
"type": "dimension",
"dimension": "ani",
"operator": "matches",
"value": "test ani value"
},
{
"type": "dimension",
"dimension": "dnis",
"operator": "matches",
"value": "test dnis value"
}
]
}
]
}
You could then use POST /api/v2/recording/batchrequests to download the recordings for the returned conversations.
The following Java tutorial shows how to complete this process with a simple filter for the conversation interval. That tutorial uses the Java SDK to make API calls.
As for playing the recording in a browser, that's outside of my knowledge on this topic but I'm sure the server can provide the recordings to the client to be played by the front end.
For more information on the conversation detail query syntax and paging see this article and this article for conversation detail query dimensions.
system | 2022-01-24 14:11:02 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 13040