I';我使用PHP创建了一个twilio应用程序,并且很难携带RecordingUrl变量


I'm creating a twilio application using PHP and having a hard time carrying the RecordingUrl variable

在脚本的第一页上,我要求调用者说出自己的名字并记录下来,然后转到第二页,twilio同时拨打三个号码。

 <?php
    header("content-type: text/xml");
    echo "<?xml version='"1.0'" encoding='"UTF-8'"?>'n";
 ?>
 <Response>
    <Say>please hold while we locate mike</Say>
        <Dial>
            <Number url="hello-monkey-name.php">+12163453546</Number>
            <Number url="hello-monkey-name.php">+12345678968</Number>
        </Dial>
</Response>

url属性允许我只向被调用者播放内容,我想播放第一页的记录,但我不知道如何携带变量,如果有任何帮助,我们将不胜感激。

Twilio福音传道者。

如果您正在使用<记录>谓词,可以使用action属性指定录制完成时要请求的URL。当Twilio请求该URL时,它将包括一些超出默认设置的额外参数:

http://www.twilio.com/docs/api/twiml/record#attributes-动作参数

RecordingUrl参数将为您提供录制的URL,您可以<播放>呼叫方。

Devin