I've seen several older posts on this (without result) and cannot seem to find a clear solution on this yet.
The thing I'm trying to do should be fairly simply.
I'm logged in via my .net client via Implicit grand. I am calling myself and am trying to answer the call via an API Call.
I've now tried quite some requests/patch/post/ etc. but cannot seem to find the thing that is working.
My last try is the following
public void AnswerCall()
{
var conversation = _conversationsApi.GetConversation(_incomingCallId);
conversation.State = Conversation.StateEnum.Connected;
_conversationsApi.PatchConversationsCall(_incomingCallId, conversation);
}
This results in a Bad Request without any additional information.
I've also tried to work with:
PatchConversationsCallParticipant
this returns a 202, but the call is not picked up.
Could anyone shine some light on this for me.
The question should be simple, I receive a notification of an conversation, I've got the conversation it is in alerting. I want to connect myself via an API call. (using WebRtc).
Thanks!
also I do have the "placing calls with another app" option enabled.
To clarify I also tried the following, which does result in a 202 but the call does not get connected:
var conversation = _conversationsApi.GetConversation(_incomingCallId);
Participant participant = null;
foreach (var part in conversation.Participants)
{
if(part.UserId == _myUser.Id)
{
participant = part;
}
}
var body = new MediaParticipantRequest { State = MediaParticipantRequest.StateEnum.Connected};
_conversationsApi.PatchConversationsCallParticipant(_incomingCallId, participant.Id, body);
Please open a case with Genesys Cloud Care to investigate this issue. The API request is working correctly as it returns a successful response. Why it doesn't do what you expect will have to be investigated by Care as that requires access to customer data we cannot access via the forum.
Thank you for your response, I already did so, however they told me to ask around here..
So I should let them investigate the specific interactions I tried to do this for?
Yes, please continue to work with Care. We do not have access to your org's private data, specifically things like Edge logs in this case, to be able to troubleshoot what happens downstream from the API request. If the request returns success but doesn't do the thing it was supposed to do, that is 100% a case that can only go to Care as they are the only group of employees that has access to the necessary information. If you can provide the case number, I'll escalate it to be reopened.