我目前正在从事一个项目,其中一个元素是Amazon。到目前为止,我的功能是在磁盘上本地触发连接,并根据文档使用以下代码。
const AWS = require('aws-sdk');
AWS.config.loadFromPath('./configuration/keys/key-aws.json');
exports.makeCall = (number) => {
let connect = new AWS.Connect();
var params = {
InstanceId: 'xxxxxx',
ContactFlowId: 'xxxxxx',
SourcePhoneNumber: 'xxxxxx',
DestinationPhoneNumber: number,
Attributes: {},
};
connect.startOutboundVoiceContact(
params,
function(error, response) {
if (error) {
console.log(error)
callback('Error', null);
} else {
console.log('Initiated an outbound call with Contact Id ' + JSON.stringify(response.ContactId));
}
}
);
};我的问题是:
提前感谢您的帮助!
发布于 2022-03-04 20:51:10
,
另一种选择是使用动态数据流和监视来跟踪联系人,并在联系人完成时调用lamba。请参阅https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
我将将触觉写到dynamodb,并在监视运动流的lambda中使用它。
。
发布于 2022-08-25 04:22:04
为什么不使用呢?您将在每个事件中获得调用状态。例如OnConnecting,OnConnected,OnMissed和OnCompleted。
https://stackoverflow.com/questions/71157354
复制相似问题