Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twilio 入站呼叫发送未预期的挂断信号_Twilio - Fatal编程技术网

Twilio 入站呼叫发送未预期的挂断信号

Twilio 入站呼叫发送未预期的挂断信号,twilio,Twilio,我正在尝试对一个来电者进行5组40-50秒的录音 我有以下设置以响应入站呼叫: <Response> <Say>Recording $n</Say> <Record action="/twilio/answer/$n" finishOnKey="123456789#*" maxLength="50" playBeep="true" timeout="5" trim="trim-silence" /> </Response>

我正在尝试对一个来电者进行5组40-50秒的录音

我有以下设置以响应入站呼叫:

<Response>
    <Say>Recording $n</Say>
    <Record action="/twilio/answer/$n" finishOnKey="123456789#*" maxLength="50" playBeep="true" timeout="5" trim="trim-silence" />
</Response>
我绝对不会挂断电话

当记录持续时间为31秒时,始终发送挂断信号。 如果第一次录制/查看成功,则所有其他录制/查看也将成功

我用我的手机(Android)和Skype都经历过这种情况

我正在使用装有gunicorn的烧瓶:

gunicorn voice:app  -b 127.0.0.1:8000  --timeout 120  --graceful-timeout     120  --workers 3 --worker-class gevent  --log-file - --log-level debug
我使用nginx作为反向代理:

server {
    listen 80;
    listen 443 ssl;
    server_name example.com;

ssl_certificate somewhere/fullchain.pem;
ssl_certificate_key somewhere/privkey.pem;
ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers         HIGH:!aNULL:!MD5;

access_log  /var/log/nginx/access.log;
error_log  /var/log/nginx/error.log;

location / {
    proxy_pass         http://127.0.0.1:8000;
    proxy_redirect     http://127.0.0.1:8000 https://example.com;

    proxy_set_header   Host                 $host;
    proxy_set_header   X-Real-IP            $remote_addr;
    proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto    $scheme;
    proxy_read_timeout 120s;
}
}
在我看来,这是Twilio的一个问题

是否有:

  • 有办法解决这个问题吗
  • 忽略挂断信号并继续的方法

  • 事实证明,电话号码是由运营商提供的,如果30秒内没有音频,运营商就会挂断电话


    问题通过使用其他提供程序解决。正在等待Twilio支持告诉我如何在没有此功能的情况下查找号码。

    您希望发生什么?一旦录音结束,使用TwiML,通话将结束。预期结果是什么?如上所述。我保存url并转到下一个录音,或者重播问题。
    gunicorn voice:app  -b 127.0.0.1:8000  --timeout 120  --graceful-timeout     120  --workers 3 --worker-class gevent  --log-file - --log-level debug
    
    server {
        listen 80;
        listen 443 ssl;
        server_name example.com;
    
    ssl_certificate somewhere/fullchain.pem;
    ssl_certificate_key somewhere/privkey.pem;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;
    
    access_log  /var/log/nginx/access.log;
    error_log  /var/log/nginx/error.log;
    
    location / {
        proxy_pass         http://127.0.0.1:8000;
        proxy_redirect     http://127.0.0.1:8000 https://example.com;
    
        proxy_set_header   Host                 $host;
        proxy_set_header   X-Real-IP            $remote_addr;
        proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto    $scheme;
        proxy_read_timeout 120s;
    }
    }