Is seems that its not possible to answer incoming calls thru the API.
I am currently using the .NET SDK and I can see the call being sendt using Fiddler, but it dosent seem to connect the call.
var conversationApi = new ConversationsApi();
conversationApi.PatchConversationsCallParticipant(currentConversation.Id,
participantid, new MediaParticipantRequest { State = MediaParticipantRequest.StateEnum.Connected });
This is my c# code and in fiddler I'm getting this:
Your request is being handled successfully as far as I can tell. The API/conversation service is sending a command to the edge to answer the call, but that's as far as I have the ability to see. You'll need to open a ticket with PureCloud Support to troubleshoot further (look into the edge logs). Be sure to mention that you have done troubleshooting on the forum and that the API request is correct and successful, but the edge isn't connecting the call.
To follow up on this, answering calls via the API when using a WebRTC station isn't currently possible. The only way to answer an incoming call when using a WebRTC station is to have the call be auto-answered. The ability to answer incoming calls using a WebRTC station is being tracked as PURE-1848.