Skip to content

语音回执回调

ben.zhuang edited this page Oct 14, 2022 · 1 revision

简要描述:

  • 语音群呼/验证码回执(DR)推送

请求URL:

  • DR推送的Http接口地址(由用户提供)
  • 例如:http://106.15.34.94:8989/voice/testVoiceDr

请求方式:

  • POST 参数不要传body,用form表单方式提交

参数: 1. 语音群呼

参数名 必选 类型 说明
phone string 手机号
countryCode string 国码
duration string 接通时长
voice_type string 语音类型:0群呼 、 1验证码或者通知
messageid string 语音id,对应的语音提交成功得到的id
basic_price string 未通基本费
second number 秒钟数
cycle number 计费周期
size string 周期数
customer_price string 客户单价
start_time string 通话开始时间
end_time string 通话结束时间
result string 发送结果:成功接通/未接通
hangup_disposition string 终止原因:send_cancel=主叫超时;recv_refuse=被叫拒接;recv_bye=被叫挂断;send_bye=主叫挂断;other=其他
ivr_result string 按键反馈

2.语音验证/通知

参数名 必选 类型 说明
phone string 手机号
show_phone string 显示号码
countryCode string 国码
duration string 接通时长
voice_type string 语音类型:0群呼 、 1验证码或者通知
messageid string 语音id,对应的语音提交成功得到的id
second number 秒钟数
cycle number 计费周期
size string 周期数
customer_price string 客户单价
record_url string 语音记录url,对应的语音验证时返回
start_time string 通话开始时间
end_time string 通话结束时间
result string 发送结果:成功接通/未接通

推送示例

http://106.15.34.94:8080/sms/testVoiceDr?phone=8615088888888&show_phone=8615088888888&countryCode=86&duration=10&voice_type=0&messageid=74078a0090f17e011505297261994&basic_price=0.005&second=10&cycle=60&size=1&customer_price=0.036&start_time=2020-12-01 00:00:00&end_time=2020-12-01 00:00:10&result=成功接通&hangup_disposition=send_bye&ivr_result=

用户返回值 成功返回字符串:success 失败返回字符串:error

备注 说明:DR只推送一次,如果需要重复推送,请向客服联系

Introduction

WhatsApp

Short message

Voice

Call Center(NXLink)

AI Agent(NXLink)

Call Center(Callbot)

Flash Call

Short links

邮件验证码

DID号码

通用

号码检测

Clone this wiki locally