Reputation: 65
I have implemented warm transfer in the my application (C#) but I have to extend it. Below is my new use case:
Customer calls to our Twilio number. That Twilio number is assigned to a department in our database. Based on that number I retrieve all agents in that department. So, I want this call to go to all the agents in that department and all agents can see an incoming call on their screen.
How can I make a call to multiple agents on their 'client id' (they have generated their capability token with)?
PS: I can't use dial because dial is used for conference once agent picks up the call, I have to do something in CallResource.Create()
function in C#
Upvotes: 2
Views: 561
Reputation: 73075
Twilio developer evangelist here.
If you can't do this via <Dial>
, you need to loop through all the numbers you want to call within your C# code, calling CallResource.Create()
for each of them.
Note, you will likely want to setup to receive statusCallback webhooks so that you can complete the other calls if someone has answered.
Upvotes: 1