使用 Twilio,是否可以在电话会议期间接收用户输入? [英] With Twilio, is it possible to receive user input during a conference call?

查看:30
本文介绍了使用 Twilio,是否可以在电话会议期间接收用户输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Twilio 文档 提到您可以收集用户键盘输入收听消息:

The Twilio documentation mentions that you can collect user keypad input while they are listening to a message:

您可以在 Gather 中嵌套以下动词:Say、Play、Pause.但是您不能将 Gather 嵌套在任何其他动词中.

You can nest the following verbs within Gather: Say, Play, Pause. But you can't nest Gather within any other verbs.

会议标签不能嵌套在 Gather 标签中,那么有没有其他方法可以在用户使用会议标签连接到会议室后收集用户号码?

The Conference tag cannot be nested within the Gather tag, so is there another way to collect user digits once they are connected to a conference room using the Conference tag?

推荐答案

Twilio 布道者在这里.

Twilio evangelist here.

没有办法在电话会议中 ,但有一个变通方法.您可以利用 动词 hangupOnStar 属性.

There isn't a way to <Gather> while in a conference call, but there is a work around. You can leverage the <Dial> verbs hangupOnStar attribute.

<Response>
    <Dial hangupOnStar="true">
        <Conference>example</Conference>
    </Dial>
    <Gather action="/redirectIntoConference?name=example" numDigits="1"></Gather>
</Response>

当用户按下 * 键时,Twilio 会断开他们与电话会议的连接,并立即开始听取他们的按键音.当 Gather 完成后,您只需将他们重定向回电话会议.

When the user presses the * key, Twilio will disconnect them fro mthe conference call and immediately start to listen for them to press tones. When the Gather completes you would just redirect them back into the conference call.

这使您能够执行诸如标准 *6 组合键静音之类的操作.

This enables you to do things like the standard *6 key combination to mute.

希望有所帮助.

这篇关于使用 Twilio,是否可以在电话会议期间接收用户输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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