如何在Twilio可编程语音(会议)中建立管理功能 [英] How to build administrative functions in Twilio Programmable Voice (Conference)

查看:124
本文介绍了如何在Twilio可编程语音(会议)中建立管理功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与PHP一起使用Twilio可编程语音(会议).

我无法实现管理功能,例如使所有参与者静音/取消静音,启动&停止会议主持人的录音等,我最好使用* 1,* 2,* 3,* 4作为主持人的按键,以控制正在进行的电话会议.

感谢您的反馈.

就原型而言,我创建的流程运行良好.

  • 参与者/主持人拨打Twilio号码
  • TwiML问候用户并提示使用
  • 捕获PIN码
  • 通过服务器上的操作URL验证的PIN码
  • 当两个参与者&主持人加入会议正在工作.

解决方案

此处是Twilio开发人员的福音.

为此,您需要在会议中添加一些内容.

首先,将 hangupOnStar属性添加到<Dial>作为主持人.这将使主持人通过拨打*临时离开会议.

当他们这样做时,Twilio将在action属性中请求URL.您将需要使用允许主持人执行静音操作的TwiML响应该请求,因此您需要 <Gather> . <Gather>将需要一个action属性,该属性接收主持人按下的Digits,使用REST API执行操作(静音/取消静音),并返回TwiML以将主持人放回<Conference>中.

有帮助吗?

I'm playing around Twilio programmable Voice (Conference) along with PHP.

I'm unable to implement administrative functions like muting/un-muting all participants, start & stop recording etc by moderator of the conference, I preferably would like to use *1, *2, *3, *4 as keypad presses by moderator to have control over the active ongoing conference call.

Appreciate your feedback.

The flow I've created so far as prototype is working good.

  • Participant/moderator dials Twilio number
  • TwiML greets users by and prompts to capture PIN code by using
  • PIN code validated by action URL on my server
  • When two participant & moderator joins conference is working.

解决方案

Twilio developer evangelist here.

In order to achieve this, you need to add a couple of things to your conference.

First, add the hangupOnStar attribute to the <Dial> for your moderator. That will allow the moderator to temporarily leave the conference by dialling *.

When they do, Twilio will request the URL in the action attribute. You will want to respond to that request with TwiML that allows the moderator to perform the muting action, so you'll need a <Gather>. The <Gather> will need an action attribute that receives the Digits pressed by the moderator, performs the action (muting/unmuting) using the REST API and returns TwiML to put the moderator back into the <Conference>.

Does that help?

这篇关于如何在Twilio可编程语音(会议)中建立管理功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆