TCCC Agent Android API
Static Public Attributes | List of all members
com.tencent.tccc.TCCCError Class Reference

Static Public Attributes

static final int ERR_SIP_SUCCESS = 200
 无错误
 
static final int ERR_NONE = 0
 无错误。成功
 
static final int ERR_HTTP_REQUEST_FAILURE = -10001
 Http 请求失败,请检查网络连接情况
 
static final int ERR_HTTP_TOKEN_ERROR = -10002
 token登录票据不正确或者已过期
 
static final int ERR_HTTP_GETSIPINFO_ERROR = -10003
 获取坐席配置失败。请联系我们
 
static final int ERR_NETWORK_CANNOT_RESET = -10004
 正在通话中,禁止重置网络操作&发起外呼
 
static final int ERR_UNRIGIST_FAILURE = 20001
 注销失败
 
static final int ERR_ANSWER_FAILURE = 20002
 接听失败,通常是trtc进房失败了
 
static final int ERR_SIPURI_WRONGFORMAT = 20003
 URI 格式错误。
 
static final int ERR_SIP_BAD_REQUEST = 400
 Bad Request 错误请求。通常是坐席没有登录就发起了请求
 
static final int ERR_SIP_UNAUTHORIZED = 401
 Unauthorized。未授权(用户名密码不对情况)
 
static final int ERR_SIP_PAYMENTREQUIRED = 402
 Payment Required 付费要求,通常是坐席许可满了
 
static final int ERR_SIP_FORBIDDEN = 403
 Forbidden 禁止。密码错误,或者是被踢了
 
static final int ERR_SIP_NOTFOUND = 404
 Not Found 未发现
 
static final int ERR_SIP_NOTALLOWED = 405
 Method Not Allowed.
 
static final int ERR_SIP_NOTACCEPTABLE = 406
 Not Acceptable.
 
static final int ERR_SIP_AUTHENTICATION_REQUIRED = 407
 Proxy Authentication Required 代理需要认证,请检查是否已经调用登录接口
 
static final int ERR_SIP_REQUESTTIMEOUT = 408
 Request Timeout。请求超时(网络超时)
 
static final int ERR_SIP_GONE = 410
 Gone.
 
static final int ERR_SIP_PRECONDITION_FAILED = 412
 Precondition Failed.
 
static final int ERR_SIP_TOO_LARGE = 413
 Request Entity Too Large.
 
static final int ERR_SIP_URI_TOO_LONG = 414
 Request-URI Too Long。 请求URL太长(用户ID太长)
 
static final int ERR_SIP_UNSUPPORTED_MEDIA = 415
 Unsupported Media Type.
 
static final int ERR_SIP_UNSUPPORTED_SCHEME = 416
 Unsupported URI Scheme.
 
static final int ERR_SIP_BAD_EXTENSION = 420
 Bad Extension.
 
static final int ERR_SIP_EXTENSION_REQUIRED = 421
 Extension Required.
 
static final int ERR_SIP_SESSION_TOO_SMALL = 422
 Session Interval Too Small.
 
static final int ERR_SIP_TOO_BRIEF = 423
 Interval Too Brief.
 
static final int ERR_SIP_FLOW_FAILED = 430
 Flow failed.
 
static final int ERR_SIP_TEMPORARILY_UNAVAILABLE = 480
 Temporarily Unavailable.
 
static final int ERR_SIP_NOT_EXIST = 481
 Call/Transaction Does Not Exist.
 
static final int ERR_SIP_LOOP_DETECTED = 482
 Loop Detected.
 
static final int ERR_SIP_TOO_MANY_HOPS = 483
 Too Many Hops.
 
static final int ERR_SIP_ADDRESS_INCOMPLETE = 484
 Address Incomplete.
 
static final int ERR_SIP_AMBIGUOUS = 485
 Ambiguous.
 
static final int ERR_SIP_BUSY_HERE = 486
 Busy Here.
 
static final int ERR_SIP_REQUEST_TERMINATED = 487
 Request Terminated。请求终止(网络异常,网络中断场景下)
 
static final int ERR_SIP_NOT_ACCEPTABLE_HERE = 488
 Not Acceptable Here.
 
static final int ERR_SIP_REQUEST_PENDING = 491
 Request Pending.
 
static final int ERR_SIP_UNDECIPHERABLE = 493
 Undecipherable.
 
static final int ERR_SIP_SERVER_ERROR = 500
 Server Internal Error.
 
static final int ERR_SIP_NOT_IMPLEMENTED = 501
 Not Implemented.
 
static final int ERR_SIP_BAD_GATEWAY = 502
 Bad Gateway.
 
static final int ERR_SIP_SERVICE_UNAVAILABLE = 503
 Service Unavailable 服务不可用
 
static final int ERR_SIP_SERVER_TIMEOUT = 504
 Server Time-out 服务超时
 
static final int ERR_SIP_VERSION_NOT_SUPPORTED = 505
 Version Not Supported.
 
static final int ERR_SIP_MESSAGE_TOO_LARGE = 513
 Message Too Large.
 
static final int ERR_SIP_BUSY_EVERYWHERE = 600
 Busy Everywhere.
 
static final int ERR_SIP_DECLINE = 603
 Decline.
 
static final int ERR_SIP_NOT_EXIST_ANYWHERE = 604
 Does Not Exist Anywhere.
 
static final int ERR_SIP_NOT_ACCEPTABLE = 606
 Not Acceptable.
 
static final int ERR_MIC_START_FAIL = -1302
 
static final int ERR_MIC_NOT_AUTHORIZED = -1317
 麦克风设备未授权,通常在移动设备出现,可能是权限被用户拒绝了
 
static final int ERR_MIC_SET_PARAM_FAIL = -1318
 麦克风设置参数失败
 
static final int ERR_MIC_OCCUPY = -1319
 麦克风正在被占用中,例如移动设备正在通话时,打开麦克风会失败
 
static final int ERR_MIC_STOP_FAIL = -1320
 停止麦克风失败
 
static final int ERR_SPEAKER_START_FAIL = -1321
 
static final int ERR_SPEAKER_SET_PARAM_FAIL = -1322
 扬声器设置参数失败
 
static final int ERR_SPEAKER_STOP_FAIL = -1323
 停止扬声器失败
 
static final int ERR_AUDIO_PLUGIN_START_FAIL = -1330
 开启系统声音录制失败,例如音频驱动插件不可用
 
static final int ERR_AUDIO_PLUGIN_INSTALL_NOT_AUTHORIZED = -1331
 安装音频驱动插件未授权
 
static final int ERR_AUDIO_PLUGIN_INSTALL_FAILED = -1332
 安装音频驱动插件失败
 
static final int ERR_AUDIO_PLUGIN_INSTALLED_BUT_NEED_RESTART = -1333
 安装虚拟声卡插件成功,但首次安装后功能暂时不可用,此为 Mac 系统限制,请在收到此错误码后提示用户重启当前 APP
 
static final int ERR_AUDIO_ENCODE_FAIL = -1304
 音频帧编码失败,例如传入自定义音频数据,SDK 无法处理
 
static final int ERR_UNSUPPORTED_SAMPLERATE = -1306
 不支持的音频采样率
 
static final int ERR_RTC_ENTER_ROOM_FAILED = -3301
 进入房间失败,请查看 onError 中的 -3301 对应的 msg 提示确认失败原因
 
static final int ERR_RTC_REQUEST_IP_TIMEOUT = -3307
 
static final int ERR_RTC_CONNECT_SERVER_TIMEOUT = -3308
 请求进房超时,请检查是否断网或者是否开启vpn,您也可以切换4G进行测试确认
 
static final int ERR_RTC_ROOM_PARAM_NULL = -3316
 进房参数为空,请检查: enterRoom:appScene: 接口调用是否传入有效的 param
 
static final int ERR_RTC_INVALID_SDK_APPID = -3317
 进房参数 sdkAppId 错误,请检查 TRTCParams.sdkAppId 是否为空
 
static final int ERR_RTC_INVALID_ROOM_ID = -3318
 进房参数 roomId 错误,请检查 TRTCParams.roomId 或 TRTCParams.strRoomId 是否为空,注意 roomId 和 strRoomId 不可混用
 
static final int ERR_RTC_INVALID_USER_ID = -3319
 进房参数 userId 不正确,请检查 TRTCParams.userId 是否为空
 
static final int ERR_RTC_INVALID_USER_SIG = -3320
 进房参数 userSig 不正确,请检查 TRTCParams.userSig 是否为空
 
static final int ERR_RTC_ENTER_ROOM_REFUSED = -3340
 进房请求被拒绝,请检查是否连续调用 enterRoom 进入相同 Id 的房间
 

Detailed Description

错误类型

Member Data Documentation

◆ ERR_MIC_START_FAIL

final int com.tencent.tccc.TCCCError.ERR_MIC_START_FAIL = -1302
static

打开麦克风失败,例如在 Windows 或 Mac 设备,麦克风的配置程序(驱动程序)异常,禁用后重新启用设备,或者重启机器,或者更新配置程序

◆ ERR_RTC_REQUEST_IP_TIMEOUT

final int com.tencent.tccc.TCCCError.ERR_RTC_REQUEST_IP_TIMEOUT = -3307
static

请求 IP 和 sig 超时,请检查网络是否正常,或网络防火墙是否放行 UDP。 可尝试访问下列 IP:162.14.22.165:8000 162.14.6.105:8000 和域名:default-query.trtc.tencent-cloud.com:8000

◆ ERR_SPEAKER_START_FAIL

final int com.tencent.tccc.TCCCError.ERR_SPEAKER_START_FAIL = -1321
static

打开扬声器失败,例如在 Windows 或 Mac 设备,扬声器的配置程序(驱动程序)异常,禁用后重新启用设备,或者重启机器,或者更新配置程序


The documentation for this class was generated from the following file: