asp.net-mvc - Twilio 记录完成“动作:”,但记录为空
问题描述
根据可编程语音文档; if Twilio receives an empty recording, it will not make a request to the 'action' URL. The current call flow will continue with the next verb in the current TwiML document.
我已经(尝试)编写了我的代码,以便提示用户进行录音,如果在录音期间没有检测到语音,他们会收到另一个提示,根据以下代码:
[HttpPost]
public ActionResult Index()
{
var response = new VoiceResponse();
response.Say("hello, how can I help you today?");
response.Record(action: Url.ActionUri("Show", "Voice"), playBeep: false, finishOnKey:"1");
response.Say("please try again")
return TwiML(response);
}
[HttpPost]
public ActionResult Show(string RecordingUrl)
{
...
}
但是,即使用户在通话录音时不说话,它也会 POST 到,ActionResult Show()
尽管文档说明它应该这样做response.Say("please try again")
。我是否错误地解释了文档?我怎样才能解决这个问题?
谢谢
解决方案
请与支持人员联系,帐户可以打开或关闭此功能
推荐阅读
- sql - 选择一行Oracle中的所有值(所有行)
- java - 更新了错误“JDK7u25 Codebase manifest 属性应该用于限制 JAR 再利用。请设置 manifest.custom.codebase”的解决方案
- r - 应用 fGarch 包拟合简单 GARCH 模型时的警告消息
- c# - VS2019社区升级到专业版报错CS0579
- vulkan - vkQueuePresentKHR 上的 vkMapMemory 验证错误,但从未直接调用该函数
- php - 如何从 jquery 更新树枝变量?
- flutter - 使用提供者值颤振初始路由
- android - Android:导航组件 - 如何将工具栏菜单连接到片段?
- arm - 我的线程没有出现在 Keil uvision 的 RTOS 手表上
- c++ - 如何捕获 ssh_options_set 函数的异常