How to build administrative functions in Twilio Programmable Voice (Conference)

徘徊边缘 提交于 2020-01-25 11:24:25

问题


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.

回答1:


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?



来源:https://stackoverflow.com/questions/53619690/how-to-build-administrative-functions-in-twilio-programmable-voice-conference

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!