目录

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.

Description

Incorrect parameter settings.

Possible Cause

1. The number of parameters is incorrect. For example, mandatory parameters are not passed.

2. The call status is incorrect. The most common error is that an outgoing call fails to be reported as its status is not VOIP_CALL_STATE_DIALING.

3. The call type is incorrect. Currently, only the voice call VOIP_CALL_VOICE and video call VOIP_CALL_VIDEO 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 call fails to be reported.

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.

Description

Call Kit is not started.

Possible Cause

Call 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.

Description

Call Kit encounters an internal error.

Possible Cause

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 call with a carrier. For example, an outgoing VoIP call cannot be initiated when a call with a carrier is in progress.

Solution

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

1007200099 Unknown Error

Error Message

Unknown error code.

Description

Call Kit encounters an unknown error.

Possible Cause

Unknown.

Solution

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