Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

容联云通讯外呼

容联云通讯外呼包配置——Campaign 模型、OutboundCallOptions 共享配置、AccountSid 映射。

Last updated

包信息

属性
NuGet 包Bitzsoft.Integrations.OutboundCall.Yuntongxun
Provider IDyuntongxun
模型Campaign
鉴权容联云通讯 AccountSid + AuthToken

配置字段(OutboundCallOptions)

容联云通讯共用 OutboundCallOptions

字段容联对应
AccessKeyIdAccountSid
AccessKeySecretAuthToken
SdkAppId应用 ID
Region地域(如 BJ / SH

配置示例

builder.Services.AddYuntongxunOutboundCall(options =>
{
options.AccessKeyId = "your-account-sid";
options.AccessKeySecret = "your-auth-token";
options.SdkAppId = "your-app-id";
options.Callers = new() { "08602160662606" };
});

DI 注册

builder.Services.AddYuntongxunOutboundCall(options => { /* 见上 */ });

使用示例

public class QueryService(IOutboundCallService outbound)
{
public async Task<List<CallRecord>> GetRecordsAsync(string campaignId)
{
return await outbound.QueryCallRecordsAsync(new QueryCallRecordsRequest
{
CampaignId = campaignId,
});
}
}

已知限制

  • 容联云通讯的活动生命周期管理接口较为简化,部分状态转换可能需要轮询 GetCampaignAsync

相关

100%

滚轮或按钮缩放 · 放大后拖动画面 · 双击切换 100% / 200%