1
votes

The basic issue I am facing is "When I try to redirect one of two connected calls (each is a twilio generated call) to a conference, the call moves to the conference but ends within 2 seconds"

Here are the steps, 1. Customer calls and is put in queue 2. A REST API twilio call is created to agent phone 3. When agent picks up the call then we are queueing into the queue where customer call is present from first step and connects the agent with the queued call (throught twiml) 4. Then through REST api I am trying to put the callsid for customer call to a conference. On doing this the caller is put in conference but after 2 seconds the customer calls ends.

1
What are you trying to achieve? Are there more than 2 participants in your scenario or do you want to simply connect the agent to the customer?Alvis

1 Answers

0
votes

Since you are saying that after 2 seconds the customer call ends, I suspect that some Customer call status callback or action URL is hit that executes a hangup action.

It could be the action URL on the enqueue verb (used to put the customer into queue) that is executed and returns the hangup. The action would be executed when de-queued call ends (or being forwarded to a conference).

That would be my guess.

That being said, it is not clear why do you need to put the Agent and the Customer to the conference? Once the Agent calls into Queue, he connects to the Customer and they can begin talking.