Twilio记录完成“操作:”且记录为空

时间:2018-07-13 08:20:36

标签: asp.net-mvc twilio twilio-api actionresult twilio-programmable-voice

根据可编程语音文档; 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)
        {
...
        }

但是,即使用户在通话录音中不讲话,它也会向ActionResult Show()进行开机自检,尽管有文档说明它应该response.Say("please try again")。我对文档的解释不正确吗?我该如何解决?

谢谢

1 个答案:

答案 0 :(得分:1)

请联系支持人员确认,帐户可以启用或关闭此功能