我已经与Sinch支持团队一起设置了Amazon S3存储桶,现在很难将任何记录发送到存储桶。我假设我的存储桶中的所有内容均正确设置,并且我的ICE响应一定是错误的。这是使用PHP作为我的回调文件语言。
如果您看到有关我的ICE响应数组结构的任何错误信息,请告诉我。谢谢!
$ice_response = array(
"instructions" => array(
array(
"name" => "Say",
"text" => "Hello",
"locale" => "en-US"
)
),
"action" => array(
"name" => "connectConf",
"conferenceId" => "coolconference",
"record" => true,
"recordingOptions" => array(
"destinationUrl" => "s3://mybucketname",
"credentials" => "accesskey:secretkey:us-east-2",
"format" => "mp3",
"notificationEvents" => true
)
)
);
更新11.21.19
此ICE响应启动电话会议后,我现在正在测试通过PATCH请求开始录制以 https://callingapi.sinch.com/v1/calls/id/ {user_call_id} 具有以下数据结构,但仍然看不到任何记录发送到我的存储桶。在响应中都可以听到“ A部分”和“ B部分”,除非数据结构中有错误,否则我不会从端点得到任何响应。
如果您在开始录制时遇到任何错误,请告诉我
{
"instructions": {
{
"name": "Say",
"text": "Part A",
"locale": "en-US"
},
{
"name": "StartRecording",
"options": {
"destinationUrl": "s3://bucketname",
"credentials": "accesskey:secretkey:regioncode",
"notificationEvents": true
}
},
{
"name": "Say",
"text": "Part B",
"locale": "en-US"
}
},
"action": {
"name": "continue"
}
}