twilio conference - get dialedin participants phone input

别等时光非礼了梦想. 提交于 2019-12-12 04:24:08

问题


All the participants to my twilio conference are muted except the presenter. I need to implement a feature where the dialed in participant wants to ask a question by dialing a key on his phone.

Essentially a 'raise hand' feature. He can then be unmuted by the moderator and allowed to ask his question.

I already have a build in dashboard to mute/unmute the participants.

is there a way that the caller can hit *1 or some combination of keys that I can then use in my callback.

I've tried using * with hanguponstar functionality but it basically exits the caller from the conference.

Thanks, Amit


回答1:


Twilio developer evangelist here.

If you use hangupOnStar and add further TwiML after the <Dial> then the call will continue for the user. So, you could do something like:

<Response>
  <Dial hangupOnStar="true">
    <Conference>MyConferenceRoom</Conference>
  </Dial>
  <Redirect>/handUp</Redirect>
</Response>

You would redirect the caller through a /handup action. In this action you could register the caller's question and respond with TwiML to dial them back into the <Conference>.

Note, if you have an action attribute for your <Dial> then the call will follow that rather than carry on with the TwiML in the original action.

Let me know if that helps at all.



来源:https://stackoverflow.com/questions/41174934/twilio-conference-get-dialedin-participants-phone-input

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