C# twilio如何使用c在10秒后关闭通话#

C# twilio如何使用c在10秒后关闭通话#,c#,twilio,C#,Twilio,10秒后或3个分机号码(如果他们输入了3次错误号码)后用c关闭呼叫# 有人能帮忙吗?这里是Twilio福音传道者 为了确保我理解,您使用了命令用户输入一个3位数的代码,如果出现以下情况之一,您希望挂断电话: 10秒钟内没有来自用户的输入 三个无效条目之后 让我们来解决第一个问题:10秒无输入后挂断。动词包含一个属性,可用于告诉Twilio等待输入的时间。如果在此期间未提供任何输入,Twilio实际上将不会调用操作URL,而是通过执行操作,如果后面有另一个动词,则执行该操作。例如: <R

10秒后或3个分机号码(如果他们输入了3次错误号码)后用c关闭呼叫#


有人能帮忙吗?

这里是Twilio福音传道者

为了确保我理解,您使用了
命令用户输入一个3位数的代码,如果出现以下情况之一,您希望挂断电话:

  • 10秒钟内没有来自用户的输入
  • 三个无效条目之后
让我们来解决第一个问题:10秒无输入后挂断。
动词包含一个属性,可用于告诉Twilio等待输入的时间。如果在此期间未提供任何输入,Twilio实际上将不会调用操作URL,而是通过
执行操作,如果后面有另一个动词,则执行该操作。例如:

<Response>
    <Say>Please enter your three digit code:</Say>
    <Gather timeout="10" action="http://example.com/login/process" />
    <Say>I didn't here that.  Can you try entering you code again?</Say>
    <Redirect>http://example.com/login/start</Redirect>
</Response>
<Response>
    <Say>Please enter your three digit code:</Say>
    <Gather timeout="10" action="http://example.com/login/process?attempt=0" />
    <Say>I didn't here that.  Goodbye</Say>
    <Hangup />
</Response>
这有意义吗


希望能有帮助。

10秒后接电话是什么意思?如果用户没有为
Gather
操作输入任何内容,您的意思是终止呼叫吗?3分机号码是指给用户最多3次输入有效数字的尝试,如果无效则挂断?请澄清一下你的问题。。。
<Response>
    <Say>Please enter your three digit code:</Say>
    <Gather timeout="10" action="http://example.com/login/process" />
    <Say>I didn't here that.  Goodbye</Say>
    <Hangup />
</Response>
<Response>
    <Say>Please enter your three digit code:</Say>
    <Gather timeout="10" action="http://example.com/login/process?attempt=0" />
    <Say>I didn't here that.  Goodbye</Say>
    <Hangup />
</Response>
if (Request.Form["Digits"] != "123")
{
     int attempts = int.Parse(Request["attempt"]);
     attempts++;

     //generate the Gather TwiML and append the value
     // of the attempts variable to the action URL         
}