Twilio呼叫在2分钟后自动切断 [英] Twilio call automatically cuts after 2 minutes

查看:91
本文介绍了Twilio呼叫在2分钟后自动切断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经面临这个问题1周了,这就像电话产生时一样,它会在录音2分钟后自动切断。这是TwiML

I have been facing this problem for 1 week now which stands as when the call is generated it automatically cuts after 2 minutes of recording of the call . Here is the TwiML

<Response>
<Say voice="woman" language="en">Hii Welcome to our App</Say>
<Record timeout="10" />
</Response>

这是代码:

client.calls.create(
    {
      url: "http://19f68022.ngrok.io/bot.xml",
      to: '+*******',
      from: '+*******',
    },
    function (err, call) {
      if (err) {
        console.log(err);
      } else {
        console.log(call);
      }
    }
  ); 

请帮助伙伴这是twilio
的严重问题注意:使用twilio Trail帐户

Please Help Guys this is really a severe issue with twilio Note : Using a twilio Trail account

推荐答案

首先检查twilio编号的日志 - https://www.twilio.com/console/voice/calls/logs/
你可能会得到那里呼叫失败的原因。

First of all check the logs of your twilio number - https://www.twilio.com/console/voice/calls/logs/. You might get the reason of the call failure over there.

你的TWIML建议录音超时为10秒。你应该增加它使录音的长度更长。如果您想在录制后继续通话,则需要指定操作 transcribeCallback 网址,这可能是您的代码或twilio功能。

And your TWIML suggests the recording timeout of 10 seconds. You should increase it make the length of the recording longer. If you want to continue the call after the recording you need to specify an action or transcribeCallback url which may be your code or a twilio function.

<Response>
<Say voice="woman" language="en">Hii Welcome to our App</Say>
<Record timeout="10" transcribe="true" action="handler.js"/>
</Response>

<Response>
<Say voice="woman" language="en">Hii Welcome to our App</Say>
<Record timeout="10" transcribe="true" transcribeCallback="handler.js"/>
</Response>

此外,如果您发布其他信息(用例或要求),我或许可以提供更好的回复。

Also, I might be able to provide a better response if you post additional info(usecase or requirement).

这篇关于Twilio呼叫在2分钟后自动切断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆