This article describes how to build up the following call flow:
- Consumer calls Agent (audio only / holdman video)
- Agent answers (manually)
- Agent upgrades to Video
- Consumer answers automatically
- Agent can Co-browse via console using Correlation Id
The source code for this example consists of two pieces, consumer & agent, each with 2 components (index.html and session.php)
The session.php files perform the session provisioning server-side and is bespoke to each party. e.g. for the agent:
The session.ph for the consumer side is very similar, apart from the username and display name in the json payload.
On the consumer side, the application html and javascript doesn't change much from the minimal app. The call is initiated on page load and is an audio only call (true, false) and there is an additional callback, onIncomingCall, to answer the video upgrade with video and audio and a call to start the Assist session.
Comments
0 comments
Please sign in to leave a comment.