I am trying to switch our old call flow to the conference and I have ported most of the features to the conference. I am trying to handle incoming calls in cases where I have to ring to multiple agents and disconnect the call after one of them.
Right now I am doing something along the lines of::
Cutomer calls :: call is sent to webhook -> Get list of all active agents and send the twiml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Client>
<Identity>jane</Identity>
<Parameter name="FirstName" value ="Jane"/>
<Parameter name="LastName" value ="Doe" />
</Client>
<Client>
<IdentityHarry</Identity>
<Parameter name="FirstName" value ="Jane"/>
<Parameter name="LastName" value ="Doe" />
</Client>
</Dial>
</Response>
This way I can ring both ( or more) clients and call drops after the first agent answers.
How I achieve something like this with conference? What I want is:: ->
Customer calls:: call is captured into webhook =>
customer is dropped into the conference call with some music.
- Dial to clients :: (harry, jane) and connect them to the call.
Is there a way I can do this with via rest api to conference participants api?