Skip to content

发起外呼 ​

接口说明 ​

调用接口可实现系统座席发起外呼。 座席应登录系统或通过签入接口签入系统。

请求方式 ​

POST/call/api/v1/dialOut

请求参数 ​

参数类型必填示例值说明
agentNumberstring是2000外呼座席工号
loginTypestring是PSTN登录方式(PSTN: 手机;SIP: 话机;WEBRTC: 软电话)
calleeNumberstring是01000000000被叫号码
calleeNumberEncryptedboolean否false被叫号码是否加密
agentTimeoutinteger否30呼叫主叫超时时长,默认60秒
calleeTimeoutinteger否30呼叫被叫超时时长,默认60秒
agentCallerNumberstring否—呼叫主叫使用的号码,不传则随机一个可用号码
calleeCallerNumberstring否—呼叫被叫使用的外显号,不传则随机一个可用号码
customParamsstring否—自定义参数,最大255字节,通话记录查询和推送事件会原样返回

请求示例 ​

json
{
  "agentNumber": "2000",
  "calleeNumber": "01000000000",
  "calleeNumberEncrypted": false,
  "agentTimeout": 30,
  "calleeTimeout": 30,
  "agentCallerNumber": "",
  "calleeCallerNumber": "",
  "loginType": "PSTN"
}

成功响应 ​

json
{
  "success": true,
  "code": "200",
  "message": "200 ok!",
  "data": {
    "callId": "xxxx",
    "superUniqueId": "xxxx"
  }
}

data 字段说明

字段说明
callId通话记录id
superUniqueId同callId