Thank you for the information Jerome. I will consider that as well.
I'm finding something very confusing while trying to grab the call id and participant id, to send the api request to answer the call:
Above is my agent1 on the browser. The user id is 0814e7bc-346d-4e26-a1cc-d7ea60f07a7e, as you can see in the url. However, when I make the request to get the active conversations, this is what I get:
{
"entities": [
{
"id": "57af9819-3b8d-4cf5-974b-da91e9b16bb2",
"startTime": "2024-05-24T19:41:11.358Z",
"address": "sip:1182@10.42.94.5;user=phone",
"participants": [
{
"id": "d8d3bc0f-33eb-4cda-ab54-b71db6711f95",
"startTime": "2024-05-24T19:41:11.358Z",
"userUri": "/api/v2/users/892eab2f-a047-4b74-a671-d3a5f7e4ce21",
"userId": "892eab2f-a047-4b74-a671-d3a5f7e4ce21",
"purpose": "user",
"participantType": "Internal",
"address": "sip:604230d31e9e5e1b7bb923dc+ingeniusdemo.orgspan.com@localhost",
"ani": "sip:604230d31e9e5e1b7bb923dc+ingeniusdemo.orgspan.com@localhost",
"dnis": "tel:1181",
"wrapupRequired": false,
"mediaRoles": [
"full"
],
"attributes": {},
"calls": [
{
"state": "dialing",
"initialState": "contacting",
"id": "37ecbab1-fb61-4b67-8b18-374e55d70ee2",
"direction": "outbound",
"recording": false,
"recordingState": "none",
"muted": false,
"confined": false,
"held": false,
"securePause": false,
"segments": [],
"disconnectReasons": [],
"provider": "Edge",
"self": {
"nameRaw": "",
"addressNormalized": "sip:604230d31e9e5e1b7bb923dc+ingeniusdemo.orgspan.com@localhost",
"addressRaw": "604230d31e9e5e1b7bb923dc+ingeniusdemo.orgspan.com",
"addressDisplayable": "unavailable"
},
"other": {
"name": "Extension",
"nameRaw": "",
"addressNormalized": "tel:1181",
"addressRaw": "tel:1181",
"addressDisplayable": "unavailable"
},
"afterCallWork": {},
"afterCallWorkRequired": false
}
]
},
{
"id": "0dd5da9d-61eb-448e-93d8-ae1ae91b80fd",
"startTime": "2024-05-24T19:41:11.379Z",
"userUri": "/api/v2/users/0814e7bc-346d-4e26-a1cc-d7ea60f07a7e",
"userId": "0814e7bc-346d-4e26-a1cc-d7ea60f07a7e",
"purpose": "user",
"participantType": "Internal",
"address": "sip:604230d33efa371b7a5f6b65+ingeniusdemo.orgspan.com;tgrp=efc71906-5ac5-49aa-aa5e-dd4f66dac951;trunk-context=ingeniusdemo@localhost",
"ani": "sip:1182@10.42.94.5;user=phone",
"aniName": "AD3agent2",
"dnis": "sip:604230d33efa371b7a5f6b65+ingeniusdemo.orgspan.com;tgrp=efc71906-5ac5-49aa-aa5e-dd4f66dac951;trunk-context=ingeniusdemo@localhost",
"wrapupRequired": false,
"mediaRoles": [
"full"
],
"attributes": {},
"calls": [
{
"state": "alerting",
"initialState": "alerting",
"id": "169b2e95-8d93-4563-8551-bbc1f4402e55",
"direction": "inbound",
"recording": false,
"recordingState": "none",
"muted": false,
"confined": false,
"held": false,
"securePause": false,
"segments": [],
"startAlertingTime": "2024-05-24T19:41:11.571Z",
"disconnectReasons": [],
"provider": "Edge",
"peerId": "37ecbab1-fb61-4b67-8b18-374e55d70ee2",
"self": {
"nameRaw": "Extension",
"addressNormalized": "sip:604230d33efa371b7a5f6b65+ingeniusdemo.orgspan.com;tgrp=efc71906-5ac5-49aa-aa5e-dd4f66dac951;trunk-context=ingeniusdemo@localhost",
"addressRaw": "sip:604230d33efa371b7a5f6b65+ingeniusdemo.orgspan.com@10.42.94.5;language=en-US;user=station",
"addressDisplayable": "unavailable"
},
"other": {
"name": "AD3agent2",
"nameRaw": "AD3agent2",
"addressNormalized": "sip:1182@10.42.94.5;user=phone",
"addressRaw": "sip:1182@10.42.94.5;user=phone",
"addressDisplayable": "unavailable"
},
"afterCallWork": {},
"afterCallWorkRequired": false
}
]
}
],
"recordingState": "NONE",
"divisions": [
{
"division": {
"id": "9eb1b27e-acea-4d53-992c-02b789917545",
"selfUri": "/api/v2/authorization/divisions/9eb1b27e-acea-4d53-992c-02b789917545"
},
"entities": [
{
"id": "892eab2f-a047-4b74-a671-d3a5f7e4ce21",
"selfUri": "/api/v2/users/892eab2f-a047-4b74-a671-d3a5f7e4ce21"
},
{
"id": "0814e7bc-346d-4e26-a1cc-d7ea60f07a7e",
"selfUri": "/api/v2/users/0814e7bc-346d-4e26-a1cc-d7ea60f07a7e"
}
]
}
],
"recentTransfers": [],
"securePause": false,
"utilizationLabelId": "631f0939-be32-495a-baf9-970abb039192",
"selfUri": "/api/v2/conversations/57af9819-3b8d-4cf5-974b-da91e9b16bb2"
}
],
"pageSize": 1,
"pageNumber": 1,
"total": 1,
"lastUri": "/api/v2/conversations?pageSize=1&pageNumber=1",
"firstUri": "/api/v2/conversations?pageSize=1&pageNumber=1",
"selfUri": "/api/v2/conversations?pageSize=1&pageNumber=1",
"pageCount": 1
}
If you look at this json object, the agent 1's user id is related to the second participant, which is actually my agent 2! So their id's seem to be swapped around... Either I don't understand this, or there is something wrong going on...
Thank you