Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 twilio 进行应用程序。整体功能是用户将呼叫系统,并立即显示语音菜单以按 1 到 9 或挂断。有没有办法让 twilio 在用户按下数字后立即断开呼叫(并将按键传递给我)(我不希望他们必须按 #)?如果他们不按任何东西,我想在一分钟后挂断,系统会给我一些东西,说他们什么也没按。
谢谢
我认为您可以使用以下 TwiML 完成此操作:
<Response> <Gather numDigits="1" action="keypressed.php"> <Pause length="60" /> </Gather> <Redirect method="GET">nokeypressed.php</Redirect> </Response>
在每一个中keypressed.php,nokeypressed.php你都会做出相应的回应。
keypressed.php
nokeypressed.php
<Gather> 提示和高级用法