dcalatrava | 2022-06-03 17:31:07 UTC | #1
Dear community,
I am having an issue trying to close a voice call with the Genesys API, specifically:
PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId}
{ "wrapup": { "code": "48435af3-ad97-4623-9c2c-cd1776adfdd0" }, "state": "disconnected" }
When the outbound campaign is in preview mode, the interaction is closed but keeps the call waiting to end with the event by the "End preview" button, capturing the event by console when clicking, I can see that it consumes the API:
PATCH /api/v2/conversations/callbacks/{conversationId}/participants/{participantId}
{ "state": "disconnected" }
However, when in the code I implement that API call it does not close the interaction completely, it stays in the same state waiting for the button action.
This scenario does not occur when the campaign is in other modes such as predictive or progressive.
I remain attentive to your prompt response.
tim.smith | 2022-06-13 19:30:10 UTC | #2
IIRC the preview and voice media are separate and both must be ended. You would end the voice call then end the preview. If that doesn't do the trick, please open a case with Genesys Cloud Care to investigate why the UI isn't synchronizing itself properly based on the API requests you're making.
system | 2022-07-14 19:31:01 UTC | #3
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: 15011