Twilio 电话会议:如何添加选项菜单 [英] Twilio Conference Call: how to add options menu

查看:36
本文介绍了Twilio 电话会议:如何添加选项菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的 Twilio 开发人员布道者您好 :)

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...

谢谢!

推荐答案

Twilio 布道者在这里 :)

Twilio evangelist here :)

我以前做过的一种方法是使用 动词的 hangupOnStar 属性.

One way I've done this before is by using the hangupOnStar attribute of the <Dial> verb.

只要您没有在 动词上提供操作参数,如果呼叫者在会议室中点击 *,Twilio 将断开连接他们从会议室并执行 Twilio 文档中的下一个动词,它可以是包含菜单的 :

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>

processConferenceMenu 端点中,您将处理调用者在聚集期间输入的任何值,然后如果需要,将其放回同一个会议室.

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.

我创建的系统让用户可以使用 *6(标准的自静音命令)而没有任何菜单提示,并且用户离开然后重新进入会议静音之间的延迟是几乎不明显.

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.

希望有所帮助.

这篇关于Twilio 电话会议:如何添加选项菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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