0

I want to be able to manage call conferences using a web client (through JS SDK). In the back end I'm using C#, so if that's considered, it'd be better, but at least I want to solve it in general

Scenario:

  1. A call comes in
  2. A conference is created
  3. Agent is called
  4. When agent answers through web client, it joins the call
  5. Agent should be able to "manage" the conference: put people on hold, add people, etc

I've partially managed to achieve this by returning a TwiML for creating a conference when the first call comes in. Before returning that TwiML I hit the rest API creating a call to the agent and with a URL parameter with the conference ID so the agent joins the conference (using TwiML) once he answers the call.

The issue is that the agent doesn't have the conference ID on the web client side. It just handles it as a normal call. So I can't actually do operations on that conference.

So the question is: how can the agent that joined the conference have the info for the conference to manage it? Is there some library that handles event automatically? When people join, leave, etc?

I want to avoid using database or things like that. I just want to be able to send custom parameters around to handle that using existing twilio JS library. I managed to send and receive custom parameters to client side using TwiML when doing simple calls, but the issue is that when I create the call to the agent using the Rest API on the back end, I have NOT found any way of sending custom/extra parameters

  • This of any use here, Introducing Custom Parameters for Twilio Voice Conference GA - https://www.twilio.com/changelog/introducing-custom-parameters-twilio-voice-conference and https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters. – Alan Mar 27 '20 at 16:07
  • and this, Added support for custom incoming parameters from TwiML - https://www.twilio.com/docs/voice/client/javascript/changelog#new-features_5 and Connection.customParameters - https://www.twilio.com/docs/voice/how-share-information-between-your-applications#voice-client-js-1. – Alan Mar 27 '20 at 16:13
  • I can't send custom parameters when creating a conference so I can't use participant API to add participants to a conference as I don't know the conference ID. Is there a way to get a conference ID having a call ID that's a participant in a conference? I've achieved it by looping through all conferences and then by checking the participants for each, but performance wise it's awful. I see on the call logs all the info I need, but I can't find a way to access that info from API or anywhere else – Nicolás Pérez de la Torre Mar 31 '20 at 14:44
  • Not sure what the TwiML looks like for the `1. A Call Comes In1 but can you use a statusCallback, https://www.twilio.com/docs/voice/twiml/conference#attributes-statusCallbackEvent, to capture the ConferenceSID when the participants joins the conference? – Alan Apr 01 '20 at 10:48

0 Answers0