# VoIP Plugin error code
# 1. Return error code
errCode | describe |
---|---|
1 | roomId error |
2 | equipment deviceId error |
3 | voip_id error |
4 | VoipToken error (Brush Face Mode) |
5 | generate voip Room error |
7 | openId error |
8 | openId Unauthorized (Brush Face Mode) |
9 | openId Unauthorized equipment(Hardware mode) Or not. userId Contacts (Brush Face Mode) |
12 | Mini Program audio and video ability audit is not completed, the official version can not be used temporarily |
13 | Dialing WeChat, voipToken error |
14 | WeChat dialing hardware equipment, voipToken error |
15 | to be in arrears |
17 | VoipToken Corresponding modelId error |
19 | openId With Small Programs appId No match. (The same user in a different Mini Program's openId Different) |
20 | openId invalid |
22 | Incoming chargeType illegal |
23 | Current equipment License Expired |
24 | Current device not active License |
# 2. Plugin internal error code
The latest version of the plugin is supported.
errCode | describe |
---|---|
1000 | use WMPF When registering a device, deviceToken Get failure |
1001 | VoipToken Null or type error (only if incoming is required) |
1002 | CGI Request failed |
1003 | CGI Return Value Parsing Failed |
1004 | Interface call parameter error |
1005 | The plugin is currently processing other calls |
1006 | The current interface must be WMPF use |
1007 | The current interface must be used in the WeChat client |
1008 | The call is interrupted, the specific reason needs to be checked errMsg |
1011 | The current platform does not support this function. |
2000 | Failure to join the room, the specific reason needs to be checked errMsg |
2001 | Failed to join the room: there are currently other Mini programs VoIP The call is ongoing. |
2002 | Join Room Failure: SDK Reset failure |
2003 | Join Room Failure: SDK Initialization failure |
2004 | Join Room Failure: SDK Join the Room Fail |
2005 | Join room failure: join Callback failure |
2006 | Join Room Fail: talk Callback failure |
2007 | Failed to join the room: failed to call the audio and video device (such as unable to enable microphone, etc.) |
2008 | Join the Room Fail: Get sessionKey failure |
2009 | Failed to join the room: canceled or Mini Program back to the background |
2010 | Join room failure: join CGI Request failed |
2100 | Failure to join the room: there are currently other WeChat friends VoIP Or System Call In Progress |
2102 | Failed to join the room: no access to audio and video devices (such as recording permissions, etc.) |
2103 | Join Room Failure: No Call JSAPI The authority of |
2104 | Join the Room Fail: Other CGI Unusual, specific reasons need to be checked errMsg |
# 3. Error class
Required plug-in 2.4.0 Version Start Support
# 3.1 VoipError
The base class for the plug-in to throw an exception, inherited from the Error
, and add the following attributes:
Attribute name | type | Introduction |
---|---|---|
errMsg | string | Error message |
errCode | number | Error code |
errno | number | Returned by the base library interface errno |
Cause | unknown | If the error itself is caused by another error, the original error object is included |
# 3.2 VoipCgiError
Background request failed with error, inherited from VoipError
, type distinction only, no new attributes added.
# 3.3 VoipJoinError
Join Room Failure related error, inherited from VoipError
, and add the following attributes:
These two attribute developers generally do not need to pay attention to, only the WeChat side of the problem needs to be solved.
Attribute name | type | Introduction |
---|---|---|
extErrMsg | string | wx.joinVoipChat Extra information in an error |
errType | number | wx.joinVoipChat Returned by error. errType |
# 3.4 VoipPluginError
Other types of errors within the plug-in, inherited from the VoipError
, type distinction only, no new attributes added.