目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

1007200001 Invalid Parameter

Error Message

Invalid parameter value.

Error Description

The parameter is invalid.

Possible Causes

  1. Incorrect number of parameters, for example, mandatory parameters are not passed.

  2. Incorrect call status. The most common error is that an outgoing call fails to be reported because its status is not set to VOIP_CALL_STATE_DIALING.

  3. The call type is incorrect. Currently, only VOIP_CALL_VOICE (voice calls) and VOIP_CALL_VIDEO (video calls) are supported.

  4. The call ID does not match the call. For example, when a call status change or audio status change is reported, if the passed call ID cannot be found in the call record, the report will fail.

  5. The call is repeatedly reported. For example, if an outgoing call is reported twice, the second report fails.

Solution

  1. Ensure that the preceding parameters are correctly passed.

  2. Submit a ticket online. Huawei will get back to you as soon as possible.

1007200002 Service Not Started

Error Message

Operation failed. Cannot connect to service.

Error Description

Call Service Kit is not started.

Possible Causes

Call Service Kit fails to be started after the API is called.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.

1007200003 Internal Error

Error Message

System internal error.

Error Description

Call Service Kit encounters an internal error.

Possible Causes

  1. The number of calls exceeds the upper limit. A maximum of three incoming calls and one outgoing call are allowed. Otherwise, an error will be reported.

  2. The call conflicts with a carrier call. For example, an outgoing in-app call cannot be initiated when a carrier call is in progress.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.

1007200999 Unknown Error

Error Message

Unknown error code.

Error Description

Call Service Kit encounters an unknown error.

Possible Causes

Unknown.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.

8300001 Invalid Parameter

Error Message

Invalid parameter value.

Error Description

Parameter exception.

Possible Causes

  1. Incorrect number of parameters, for example, mandatory parameters are not passed.

  2. Invalid context. The most common case is a context that is not from the stage model.

Solution

  1. Ensure that the preceding parameters are correctly passed.

  2. Submit a ticket online. Huawei will get back to you as soon as possible.

8300002 No Enterprise Call ID Permission

Error Message

The enterprise permission is not verified.

Error Description

The enterprise caller ID permission is not granted.

Possible Causes

The enterprise caller ID permission is not granted.

Solution

Apply for the enterprise caller ID permission by referring to Requesting the Permission, or submit a ticket online. Huawei will get back to you as soon as possible.

8300003 Internal Error

Error Message

System internal error.

Error Description

Call Service Kit encounters an internal error.

Possible Causes

The query to the enterprise call capabilities times out, or token retrieval from the context fails.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.

8300999 Unknown Error

Error Message

Unknown error code.

Error Description

Call Service Kit encounters an unknown error.

Possible Causes

Unknown.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.