Twilio documentation提到您可以在收听消息时收集用户键盘输入:
你可以在Gather中嵌套以下动词:Say,Play,Pause。但你不能在任何其他动词中嵌套聚会。
会议标记不能嵌套在Gather标记中,因此在使用会议标记连接到会议室后,还有另一种方法来收集用户数字吗?
答案 0 :(得分:11)
Twilio传道者在这里。
在电话会议中没有办法<Gather>
,但有一种解决方法。您可以利用<Dial>
动词hangupOnStar属性。
<Response>
<Dial hangupOnStar="true">
<Conference>example</Conference>
</Dial>
<Gather action="/redirectIntoConference?name=example" numDigits="1"></Gather>
</Response>
当用户按下*
键时,Twilio会在电话会议中断开它们并立即开始听他们按下音调。当Gather完成后,您只需将它们重定向回电话会议。
这使您可以执行标准*6
组合键等静音操作。
希望有所帮助。