2017-08-17 88 views
0

我正在尝试使用Twilio创建出席的转移。Twilio的出席呼叫转移

我想流程如下:

1. Existing call with two legs (client side, agent side) 

2. Using API put Client on HOLD and put Agent 1 in Conference 

3. Using API Put Agent 2 into same Conference 

4. Agent 1 and Agent 2 can speak without Client hearing 

5. Using API add Client to Conference 

6. Client, Agent 1 and Agent 2 can speak together 

7. Using API Agent 1 can be disconnected from the call 

是否有可能做到这一点?

或者我们是否需要为所有入站和出站呼叫创建一个会议?

(即使只有5%左右我们的电话的送转)

回答

0

Twilio开发者传道这里。

你绝对可以做到这一点。首先从会议的背景下做到这一点可能会更容易,因为您可以利用putting conference participants on hold

要从常规呼叫开始,您需要将其中一个代理或呼叫者重定向到新的TwiML,然后确保呼叫的另一方有足够的地方继续使用现有的TwiML。这对transfer the agent's call with the REST API可能更容易,然后确保最初返回给用户的TwiML继续使用<Enqueue>将它们放入队列中,然后您可以稍后将其叫出,或者简单地循环<Play>

让我知道这是否有帮助。

+0

谢谢菲尔。现在我会深入研究代码,我知道这是可能的。如果我卡住了,我会联系。 – Marcus

+0

希望它顺利! – philnash

+0

当我们传送现有呼叫的父母或孩子时,它将丢弃另一个。我们怎么能让另一条腿'继续'像你所建议的那样?谢谢 – Marcus