永远不会调用 Twilio recordingStatusCallback

Twilio recordingStatusCallback is never called

正在尝试接收通话录音。我自己托管这个 twiml 代码。

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial timeout="40" 
         recordingStatusCallbackEvent="in-progress,completed"
         recordingStatusCallback="http://server.com/recording/">
        <Number 
             url="http://server.com/whisper/" 
             statusCallbackEvent="completed"
             statusCallback="http://server.com/status/">
             +12142142144
        </Number>
    </Dial>
</Response>

除了从未调用记录 url 之外,一切都按预期进行。呼叫转接,私语说,状态url被叫,但不录音url.

此处为 Twilio 开发人员布道师。

您似乎缺少 record 属性。 (https://www.twilio.com/docs/voice/twiml/dial#record) 如果未设置,则默认为 do-not-record

<Response>
    <Dial record="record-from-ringing-dual"
          recordingStatusCallback="www.myexample.com">
        <Number>+15558675310</Number>
    </Dial>
</Response>

可以加进去试试看吗?如果这不是问题,很乐意提供帮助。 :)