接口常见错误码

0001004

{"code":"0001004","description":"authentication fail"}

表示鉴权失败,header中的Authorization传值不正确,其生成方式可以参考1.1.3测试账号使用

0001004

{"code":"0001004","description":"authentication fail: order is illegal"}

表示订单失效了,登录平台看下订单套餐有没有更换,更换了套餐,登录门户网站 进入应用管理,点击修改应用 ,重新绑定应用套餐

0001004

{"code":"0001004","description":"Authentication failed because the ip is illegal."}

表示调用的IP没有加白导致,客户自己登录平台创建应用后面修改,添加白名单。

0001400

{"code":"0001400","description":"sla fail"}

表示流量限制,超过应用调用总次数。

0001400

{"code":"0001400","description":"the user connections exceed to limit value, can't be accessed any more"}

 

表示流量限制,达到并发限制了。可能是建立连接太多导致。外呼和下载共用连接。下载录音尽量晚上下载。

 

0001400

{"code":"0001400","description":"录音下载次数过多,请稍后重试"}

平台限制每分钟录音文件下载接口调用次数不超过2000次。

0001400

 {"code":"0001004","description":"Authentication failed because the app has reached the rate limit threshold."}

 

测试账号超过调用限制,限流。重新设置测试账号调用量。

1000014

{"code":"1000014","description":"Invalid Input CodeNumber"}

表示sponsor字段错误,sponsor所指定号码状态是没有订购或生效,需要由客户经理在集客大厅进行订购后才能使用。

0000002

{"code":"0000002","description":"Invalid Input Value"},

表示调用参数sponsor填写错误导致,正式账号如果提示这个错误,号码改成86+号(8651068xxx330)(051068xxx330)(+8651068xxx330)还是错误,代表sponsor号码有问题。

0001011

{ "code" : "0001011","description" : "NO This Audiofile"}

表示建议呼叫结束后,10分钟后再下载,文件需要转换时间。

接口返回403状态

有可能流控限制,限流,403一般都是下载录音量大占用线程导致的,白天减少录音下载

403  FORBIDDEN录音文件下载如果量大的话,建议晚上闲时的时候下载, 因为录音文件下载一个请求就几十秒,会长期占用CAPS

0000000

The time limit is normal

时段禁呼中

0010001

The ANumber call exceeds the limit

企业级A号码呼叫超过限制

0010001

The overall ANumber call exceeds the limit

全局A号码呼叫超过限制

0010001

A The number is not a mobile number

A号码不为移动号码限制

0010001

The mobile number display A switch is turned off

移动号码显A开关关闭

0010002

The BNumber call exceeds the limit

企业级B号码呼叫超过限制

0010002

The bNumber daily call restriction

全局B号码日呼叫限呼

0010002

B The interval between the dialed call and the dialed call is too short

B号码本通通话与上通通话间隔小于设定值

0010002

The bNumber monthly call restriction

全局B号码月呼叫限呼

0010003

The ANumber is in the blacklist

A号码在黑名单中(被投诉了)

0010004

The ANumber is not in the whitelist or statusAbnormal

A号码不在白名单或状态异常

0010005

The BNumber is in the blacklist

B号码在黑名单中(平台统一的黑名单算法)

0010005

The bNumber or high-risk users are restricted from calling

B号码省级或高危用户限呼

0010005

The aNumber is a special dress number

A号码为特服号

0010005

The bNumber is a special dress number

B号码为特服号

0010005

B Number is upgraded to frequency-controlled call restriction

B号码省级频次限呼

0010005

The XNumber call exceeds the limit

X号码呼叫超过限制

0010005

A Number is upgraded to frequency-controlled call restriction

A号码省级频次限呼

0010005

the bnumber is in a local blacklist

B号码本地电话邦号码限呼(平台统一黑名单算法)

0010005

phone state hit the blacklist

B号码命中电话邦黑名单限呼(平台统一黑名单算法)

0010005

The bNumber or high-risk users are restricted from calling

B号码或高风险用户被限制呼叫

0010006

B The number is not in the number group

B号码不在号码群中

0010007

B number is not a mobile number

B号码不为移动号码

一级平台响应码

1.1  点击拨号API响应码包含成功与失败

表1 点击拨号API响应码说明
响应码响应码英文描述响应码中文描述HTTP响应码
0000000success成功200
0000001Internal Service Error通用内部错误500
0000002Invalid Input Value通用请求消息参数错误(如长度、格式、必选属性等)400
0000003showCaller invalidshowCaller无效200
0001001ASP Not Exist客户ID不存在400
0001002ASP Status Error客户状态异常403
0001003Password Error密码错误400
0001004Authentication Failure认证鉴权失败400
0001005Authorization Failure能力API鉴权失败401
0001006APP Not Exist应用ID不存在400
0001007APP Status Error应用状态异常403
0001008ASP In Blacklist客户处于黑名单中400
0001009APP In Blacklist应用处于黑名单中400
0001010APP Not In Whitelist应用不处于白名单中400
0001011NO This Audiofile录音文件不存在400
1000001Engine Timeout音视频能力网元超时504
1000002Engines Return Error音视频能力网元返回失败500
1000003Traffic Control音视频流量控制失败403
1001001Number format error号码格式错误400
1001002Call ID error呼叫标识错误400
1001003Operation error呼叫操作类型错误400
1001004Direction error呼叫方向错误400
1001011Traffic Control流量控制失败403
1001012Exceeding The limit流控限制400
0010001The ANumber call exceeds the limit企业级A号码呼叫超过限制405
0010001The overall ANumber call exceeds the limit全局A号码呼叫超过限制405
0010001A The number is not a mobile numberA号码不为移动号码限制405
0010001The mobile number display A switch is turned off移动号码显A开关关闭405
0010002The BNumber call exceeds the limit企业级B号码呼叫超过限制405
0010002The bNumber daily call restriction全局B号码日呼叫限呼405
0010002B The interval between the dialed call and the dialed call is too shortB号码本通通话与上通通话间隔小于设定值405
0010002The bNumber monthly call restriction全局B号码月呼叫限呼405
0010003The ANumber is in the blacklistA号码在黑名单中405
0010004The ANumber is not in the whitelist or statusAbnormalA号码不在白名单或状态异常405
0010005The BNumber is in the blacklistB号码在黑名单中405
0010005The bNumber or high-risk users are restricted from callingB号码省级或高危用户限呼405
0010005The aNumber is a special dress numberA号码为特服号405
0010005The bNumber is a special dress numberB号码为特服号405
0010005B Number is upgraded to frequency-controlled call restrictionB号码省级频次限呼405
0010005The XNumber call exceeds the limitX号码呼叫超过限制405
0010005A Number is upgraded to frequency-controlled call restrictionA号码省级频次限呼405
0010001The ANumber call exceeds the limitA号码呼叫超过限制405
0010005Phone state hit the blacklistB号码在电话邦黑名单中405
0010005The bnumber is in a local blacklistB号码在本地黑名单中405
0010007B number is not a mobile numberB号码不为移动号码405
0010006B The number is not in the number groupB号码不在号码群中405
0010001A number is in the call blacklistA号码在呼转禁呼黑名单中405
0010005B number is in the call blacklistB号码在呼转禁呼黑名单中405

1.2  语音通知API响应嘛包含成功与失败

表1 语音通知API响应码说明
响应码响应码英文描述响应码中文描述HTTP响应码
0000000success成功200
0000001Internal Service Error通用内部错误500
0000002Invalid Input Value通用请求消息参数错误(如长度、格式、必选属性等)400
0001001ASP Not Exist客户ID不存在400
0001002ASP Status Error客户状态异常403
0001003Password Error密码错误400
0001004Authentication Failure认证鉴权失败400
0001005Authorization Failure能力API鉴权失败401
0001006APP Not Exist应用ID不存在400
0001007APP Status Error应用状态异常403
0001008ASP In Blacklist客户处于黑名单中400
0001009APP In Blacklist应用处于黑名单中400
0001010APP Not In Whitelist应用不处于白名单中400
1000001Engine Timeout音视频能力网元超时504
1000002Engines Return Error音视频能力网元返回失败500
1000003Traffic Control音视频流量控制失败403
1001001Number format error号码格式错误400
1001002Call ID error呼叫标识错误400
1001003Operation error呼叫操作类型错误400
1001004Direction error呼叫方向错误400
0000003Invalid Parameter Type模板请求参数类型错误400
0000004The number of parameters is not matched模板请求参数个数不匹配400
0000005Invalid Template ID模板请求ID错误400
0090001Participantaddress is in the call blacklist被叫号码在呼转禁呼黑名单中202