satej kumar sahu
satej kumar sahu

Reputation: 309

How to transfer call from one queue to another queue in twilio?

Can anyone tell me the steps as to how to transfer a call from one queue to another queue in twilio?

Upvotes: 0

Views: 607

Answers (1)

Devin Rader
Devin Rader

Reputation: 10366

Twilio evangelist here.

So you want to take a call that has already been queued into QueueA and move that call into QueueB?

You first need to acquire the CallSid for the call you want to transfer. There are lots of ways to do this since virtually every web hook request Twilio makes during a voice call includes the CallSid parameter. You can save the CallSid of the Call before you place it into QueueA, or you can use the Members resource to list all of the members of QueueA. Each Member resource includes the associated CallSid.

Once you have the CallSid, you can use the Members resource to dequeue the specific call providing a URL that returns a new set of TwiML instructions, which in your case is going to be the <Enqueue> verb telling Twilio to place the call into QueueB.

Hope that helps.

Upvotes: 2

Related Questions