Twilio:第三个呼叫者可以插入正在进行的呼叫

Twilio: 3rd caller can barge in to a call in progress

我有一个场景,呼叫者呼叫代理。呼叫者和座席已经参与。第三个来电者(主管)怎么能插进来听他们的谈话。

谢谢,

只需像这样使用 TwiML 拨入会议:

<Response>
  <Dial>
    <Conference>conference-room</Conference>
  </Dial>
</Response>

如果你想让主管听到谈话但不被听到,你可以使用静音属性:

muted="true"

您可以使用 API 在现有会议中添加参与者:

client.conferences(conferencesid)
    .participants
    .create({
        from: '{put your twilio number here}',
        to: `{put your supervisor number here}`,
        muted: true
    })
    .then(participant => console.log(partipant));