0

An agent needs to route the active call to another agent.

I got one article to do with Node.js here. But, not sure what to do with Javascript client.

Can I modify an existing connection? Following is my code for accepting incoming calls.

Twilio.Device.setup(window.twilioToken);

// Handle incoming calls from Twilio
Twilio.Device.incoming(function (conn) {
    conn.accept();
});

Now, one call is active on the browser. Is there any method to update the client based on Client SID?

ipradhansk
  • 352
  • 1
  • 10
  • 36

1 Answers1

0

Twilio developer evangelist here.

If you have multiple agents that you need to answer incoming calls using Twilio Client then you might want to take a look at Twilio TaskRouter.

TaskRouter is perfect for distributing calls to call center agents. It allows you to setup workers and workflows and turn incoming calls into tasks that are delivered to available workers. Check out the quickstart guide to TaskRouter and how to build a multi-channel support desk using TaskRouter.

philnash
  • 70,667
  • 10
  • 60
  • 88