Skip to main content

Disconnect reasons

For both 1-to-1 calls and group calls, LINE Planet provides a reason for call disconnection, which is called a disconnect reason. The disconnect reason values are commonly defined for client and server.

When a call is disconnected, a disconnect reason is delivered with a disconnect source (releaser_type on the server side), so your app client or app server can use the information to determine the cause and source of call disconnection.

The app client can get the information from the disconnected event callback, and the app server can get the information from 1-to-1 Call Event callback or Group Call Event callback.

Note
  • Disconnect reason values commonly defined for client and server are available since PlanetKit 5.1 (Android, iOS/macOS, Windows) and WebPlanetKit 5.2 (Web).
  • For more information on client-side APIs related to disconnect reasons, see each platform's documentation:

Disconnect sources

The following types of disconnect sources are available:

TypeValueDescription
Callee1A callee in a 1-to-1 call
Caller2A caller in a 1-to-1 call
Participant3A participant in a group call
CloudServer4LINE Planet Cloud server
AppServer5Application server

Disconnect reasons

The following sections describe disconnect reasons provided by LINE Planet. Each column in tables represents the following:

  • Name: Name of the disconnect reason
  • Value: Value of the disconnect reason
  • Call type: Applicable call type. Can be 1-to-1 call, group call, or both.
  • Disconnect source: Possible disconnect sources. An actual disconnect source can be one among the listed items. For more information, see Disconnect sources.
  • Description: Description of the disconnect reason

Common reasons

The following disconnect reasons indicate non-error situations.

NameValueCall typeDisconnect sourceDescription
NORMAL1001BothCaller, Callee, ParticipantDisconnected without any errors
DECLINE1002BothCallee, CloudServer- 1-to-1 call: The responder rejected a call.
- Group call: The previously joined group call has been declined when entering the same group call room (e.g. re-joining after crash).
CELL_CALL1003BothCaller, Callee, ParticipantReceived a cellular call during the Planet call
CANCEL12011-to-1 callCallerThe initiator disconnected the call before the responder answers.
BUSY12021-to-1 callCalleeThe responder is calling.
NOANSWER12031-to-1 callCallerThe responder doesn't answer. The initiator waits for the answer for 60 seconds.
ALREADY_GOT_A_CALL1204BothCloudServerThe initiator or the participant already has an incoming call, but not received push yet.
MULTIDEV_IN_USE1205BothCloudServerA user using the same ID pair (user-id and service-id) is calling in another device.
MULTIDEV_ANSWER12061-to-1 callCloudServerA responder using the same ID pair (user-id and service-id) answered the call in another device.
MULTIDEV_DECLINE12071-to-1 callCloudServerA responder using the same ID pair (user-id and service-id) declined the call in another device.
MAX_CALL_TIME_EXCEEDED1208BothCloudServerMaximum call time has been reached.

Error reasons for 1-to-1 calls or group calls

The following disconnect reasons indicate error situations in 1-to-1 calls or group calls.

NameValueCall typeDisconnect sourceDescription
INTERNAL_ERROR1109BothCaller, Callee, Participant, CloudServerDisconnected by an internal error
USER_ERROR1110BothCaller, Callee, AppServerApplication defined error. user_rel_code is accompanied.
- 1-to-1 call: user_rel_code is defined by the call peer.
- Group call: user_rel_code is defined by the app server. For example, see Kick out.
INTERNAL_KIT_ERROR1111BothCaller, Callee, ParticipantDisconnected by an OS-specific error
AUDIO_TX_NO_SRC1112BothCaller, Callee, ParticipantAudio source (e.g. mic) has not sent any audio data for a while.
NETWORK_UNSTABLE1301BothCaller, Callee, Participant, CloudServerNetwork is unavailable to keep a call.
PUSH_ERROR13021-to-1 callCloudServerLINE Planet Gateway failed to call the Notify callback, or the Notify callback returned a failure. Please check the app server or the Notify callback's URL.
AUTH_ERROR1303BothCloudServerAuthentication failure
RELEASED_CALL1304BothCloudServerThe call was already released. For example, the initiator already canceled the call.
SERVER_INTERNAL_ERROR1305BothCloudServerThe server disconnected a call because of an internal error.
UNAVAILABLE_NETWORK1308BothCaller, Callee, ParticipantDisconnected due to the network being unavailable for a certain period of time
APP_DESTROY1309BothCaller, Callee, ParticipantThe application process has been terminated. Detailed descriptions for each platform are as follows:
  • Android: A user's device has been powered off.
  • iOS: The application process has been terminated.
  • macOS: The application process has been terminated.
  • Windows: A user's device has been powered off.
  • Web: The browser where the call was in progress has been closed.
Note: This reason corresponds to SYSTEM_DESTROY in PlanetKit 5.1.
SYSTEM_SLEEP1310BothCaller, Callee, ParticipantThe application is in sleep mode. Detailed descriptions for each platform are as follows:
  • Android: Not applicable
  • iOS: Not applicable
  • macOS: A user's device entered sleep mode.
  • Windows: A user's device entered sleep mode.
  • Web: Not applicable
SYSTEM_LOGOFF1311BothCaller, Callee, ParticipantThe application is in logoff mode. Detailed descriptions for each platform are as follows:
  • Android: Not applicable
  • iOS: Not applicable
  • macOS: Not applicable
  • Windows: A user's session has been logged out.
  • Web: Not applicable
MTU_EXCEEDED1312BothCaller, Callee, ParticipantThe call is not connected because the maximum transmission unit (MTU) is exceeded.
APP_SERVER_DATA_ERROR1313BothCloudServerThe Planet Cloud server failed to deliver app server data to the app server.
DESKTOP_SCREEN_LOCKED1314BothCaller, Callee, ParticipantThe desktop screen is locked.
Note: This reason is applicable to macOS and Windows only.

Error reasons for group calls only

The following disconnect reasons indicate error situations specific to group calls.

NameValueCall typeDisconnect sourceDescription
ROOM_IS_FULL1401Group callCloudServerThe number of participants in this room reached the limit.
ALONE_KICK_OUT1402Group callCloudServerThe server kicks out a user when the user stays in a group call room alone for a long time.
WRONG_ROOM_ATTR1403Group callCloudServerDeprecated since PlanetKit 5.2
The room attribute is not matched.
ROOM_NOT_FOUND1404Group callCloudServerThe room is destroyed because all remaining participants left before the other participant's joining is complete.
ANOTHER_INSTANCE_TRY_TO_JOIN1405Group callParticipantDisconnected by trying to join from another instance.

The following disconnect reasons indicate errors related to HTTP connection.

NameValueCall typeDisconnect sourceDescription
SERVICE_ACCESS_TOKEN_ERROR1501BothCloudServerInvalid access token
SERVICE_INVALID_ID1502BothCloudServerAn unacceptable character is used in service-id or user-id.
SERVICE_MAINTENANCE1503BothCloudServerUnder maintenance
SERVICE_BUSY1504BothCloudServerLINE Planet Gateway is busy for now.
SERVICE_INTERNAL_ERROR1505BothCloudServerLINE Planet Gateway internal error. Joining failed in an old version (lower than 3.6) because the room has the SUBGROUP room attribute (created by PlanetKit 3.6 or higher)
SERVICE_HTTP_ERROR1506BothCaller, ParticipantCould not make an HTTP request. Please check the user's network environment:
1. Firewall settings
2. Client vaccine program
SERVICE_HTTP_CONNECTION_TIME_OUT1507BothCaller, ParticipantCould not make an HTTP request. Please check the user's network environment:
1. Firewall settings
2. Client vaccine program
SERVICE_HTTP_INVALID_PEER_CERT1508BothCaller, ParticipantSSL peer certificate or SSH remote key was invalid.
SERVICE_HTTP_CONNECT_FAIL1509BothCaller, ParticipantCould not make an HTTP request. Please check the user's network environment:
1. Firewall settings
2. Client vaccine program
SERVICE_HTTP_INVALID_URL1510BothCaller, ParticipantThe URL format is invalid, or the host or proxy name could not be resolved.
SERVICE_INCOMPATIBLE_PLANETKIT_VER1511BothCloudServerThe current PlanetKit version is deprecated. Need to upgrade.
SERVICE_TOO_MANY_REQUESTS1512BothCloudServerToo many call connection attempts in a short period of time.