Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

腾讯云外呼

腾讯云 CCC 外呼包配置——Campaign 模型、OutboundCallOptions 共享配置、境内外分离、IVR 流程。

Last updated

包信息

属性
NuGet 包Bitzsoft.Integrations.OutboundCall.Tencent
Provider IDtencent
模型Campaign
鉴权TC3-HMAC-SHA256 签名(AccessKeyId + AccessKeySecret)

配置字段(OutboundCallOptions)

腾讯云外呼与其它 Campaign 供应商共用 OutboundCallOptions

字段类型必填说明
AccessKeyIdstring腾讯云 SecretId
AccessKeySecretstring腾讯云 SecretKey
SdkAppIdstringSdkAppId
Regionstringap-guangzhou
Endpointstring?ccc.tencentcloudapi.com
CallersList<string>境内主叫号码(如 008602160662606
OverseaCallersList<string>境外主叫号码
OverseaSdkAppIdstring?境外独立 AppId
CnIvrIdlong?中文 IVR 流程 ID
EnIvrIdlong?英文 IVR 流程 ID
WhitelistList<string>?外呼白名单(支持后缀匹配)

配置示例

builder.Services.AddTencentOutboundCall(options =>
{
options.AccessKeyId = "AKIDxxxxxxxx";
options.AccessKeySecret = "your-secret-key";
options.Region = "ap-guangzhou";
options.SdkAppId = "1400818883";
options.OverseaSdkAppId = "1400818885";
options.CnIvrId = 21232;
options.EnIvrId = 21408;
options.Callers = new() { "008602160662606" };
options.OverseaCallers = new() { "0085230087235" };
});

DI 注册

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

配置校验要求 AccessKeyIdAccessKeySecretSdkAppId 非空,ValidateOnIntegrationStart() 在启动期校验。

使用示例

public class CampaignService(IOutboundCallService outbound)
{
public async Task<string> CreateAndStartAsync(string name, List<string> contacts)
{
var resp = await outbound.CreateCampaignAsync(new CreateCampaignRequest { Name = name });
await outbound.ImportContactsAsync(new ImportContactsRequest
{
CampaignId = resp.CampaignId,
Contacts = contacts,
});
await outbound.StartCampaignAsync(new StartCampaignRequest { CampaignId = resp.CampaignId });
return resp.CampaignId;
}
}

已知限制

  • 境内/境外通过 PhoneRegion 自动选择 SdkAppId、Callers 和 IVR。
  • RequireWhitelistInNonProduction 默认 true:非生产环境强制白名单防止误呼叫真实客户。

相关

100%

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