Receive an incoming call on WebRTC phone using API

I am trying to accept a call that is coming to agent's webRTC using this API# api/v2/conversations/calls/{conversationId}/participants/{participantId} but not able is there any limitation with this API with webRTC because for disconnected its is working fine but when passing
state as connected its not working.

I had this problem also.

To answer to a call via the api, you need to make a Dummy call before.
see also Answering inbound calls via JS SDK with WebRTC Station

What I did for that?

  1. Create in Architect an In-Queue Call Flow with only a Disconnect block : named by example Dummy_Call_Flow.
  2. Create a Queue and set the In-Queue Flow to the previous created flow (Dummy_Call_Flow),
    by example : named Dummy_Call and the generated id is 12345678-90ab-cdef-fedc-ba9876543210.
  3. Via the api post a call to the previous Queue:
POST /api/v2/conversations/calls
Body: { "callQueueId": "12345678-90ab-cdef-fedc-ba9876543210"}

After you can answer to a call

PATCH /api/v2/conversations/calls/{conversationId}/participants/{participantId} 
Body {"state": "connected"}

The webrtc phone has a persistent connection timeout (by default 600 seconds) and you need to repeat this action after an inactivity period.
see Configure the Genesys Cloud WebRTC phone - Genesys Cloud Resource Center

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.