回拨接口
- 开发者需要服务器发起回拨时调用
请求URL:
请求方式:
GET
POST
请求头:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| Content-Type | 是 | string | 请求类型:application/x-www-form-urlencoded |
请求参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| curTime | 是 | long | 访问请求的时间戳 |
| appId | 是 | string | 应用Id |
| signature | 是 | string | 加密字符串,大写,MD5(appId+appToken) |
| callerPhoneNumber | 是 | string | 主叫PSTN号码,PSTN号码格式,采用E164格式,如:+8613012345678 |
| calleePhoneNumber | 是 | int | 被叫PSTN号码,PSTN号码格式,采用E164格式,如:+8613012345678 |
| maxDuration | 是 | int | 最大通话时长(秒),0:无限制 |
| callerDisplay | 是 | string | 主叫显号,PSTN号码格式,采用E164格式,如:+8613012345678 |
| calleeDisplay | 是 | string | 被叫显号,PSTN号码格式,采用E164格式,如:+8613012345678 |
| isRecord | 是 | string | 是否录音,Y:录音,N:不录音 |
| extraData | 是 | 扩展信息 | |
| clientType | 是 | string | 客户端类型,默认传:server |
返回示例:
正确时返回:
{
"resultCode": 0,
"resultMsg": "dialBack succeed",
"result": {
"dialBackId": "dr49cf4258324a678ac4a3ecac46cfda",
"aLegCallId": "D3R805BB1DG3GGEB8144B2C2146D3C0Y2@fy",
"bLegCallId": "63E875B81DB3FFEH9HJ4N2B2HFFD5D1Y2@fy",
}
}
错误时返回:
{
"resultCode": -1,
"resultMsg": "dialBack failed"
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| dialBackId | string | 用于将回拨两路话单关联的id,话单推送的时候,将会推送该字段和每一路的callId,开发者可通过该字段将每路话单的callId进行关联 |
| aLegCallId | string | 回拨第一路的callId |
| bLegCallId | string | 回拨第二路的callId |