问题
Hello to Twilio Developer Evangelists here :)
Is there an easy way to add options menu (not sure if I call it right) to conference call, so all participants have ability to perform some actions by pressing numbers.
At this moment the only way I can see how this can be implemented - add outgoing call with to conference call. But I'm still playing with it, so not sure if this would work...
Thank you!
回答1:
Twilio evangelist here :)
One way I've done this before is by using the hangupOnStar attribute of the <Dial>
verb.
As long as you've not provided an action parameter on the <Dial>
verb, if the caller hits *
while in the conference room, Twilio will disconnect them from the conference room and execute the next verb in your Twilio document, which could be a <Gather>
containing a menu:
<Response>
<Dial hangupOnStar="true">
<Conference>YourConference</Conference>
</Dial>
<Gather action="http://example.com/processConferenceMenu?confName=YourConference" numDigits="1">
<Say>To mute all participants, press one</Say>
<Say>To leave the conference, press two</Say>
</Gather>
</Response>
In the processConferenceMenu
endpoint you would process whatever value the caller has input durung the gather and then if needed put then right back into the same conference room.
I've created systems which let users use *6
(the standard self-mute command) without any menu prompts and the lag between when the user leaves and then re-enters the conference muted was barely noticeable.
Hope that helps.
来源:https://stackoverflow.com/questions/26004016/twilio-conference-call-how-to-add-options-menu