Skip to main content
Version: 5.3

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, so you can use the information to determine the cause and source of call disconnection.

Note

The SDK versions that support disconnect reason values commonly defined for the client and server are as follows:

  • Android, iOS/macOS, Windows: PlanetKit 5.1 or higher
  • Web: WebPlanetKit 5.2 or higher

You can get the information from DisconnectedParam delivered by the evtDisconnected callback for 1-to-1 calls or group calls.

DisconnectedParam consists of the following properties.

PropertyTypeDescription
sourceDISCONNECT_SOURCEDisconnect source. For more information, see Disconnect sources.
reasonDisconnectReasonDisconnect reason object

DisconnectReason consists of the following properties.

PropertyTypeDescription
codeKIT_DISCONNECT_REASONCode of the disconnect reason. For more information, see Disconnect reasons.
strCodestringName of the disconnect reason

Disconnect sources

The following types of disconnect sources are available in the DISCONNECT_SOURCE enum.

Enum constantValueDescription
CALLEEcalleeA callee in a 1-to-1 call
CALLERcallerA caller in a 1-to-1 call
PARTICIPANTparticipantA participant in a group call
CLOUD_SERVERcloud_serverLINE Planet Cloud server
APP_SERVERapp_serverApplication server

Disconnect reasons

The KIT_DISCONNECT_REASON enum provides two types of disconnect reasons: disconnect reasons that are common to both WebPlanetKit and native PlanetKit, and disconnect reasons that are exclusive to WebPlanetKit.

Disconnect reasons common to WebPlanetKit and native PlanetKit

The following disconnect reasons are common to both WebPlanetKit and native PlanetKit. For more information on each reason, refer to the links below:

Enum constantDisconnect reason
PLANETKIT_DISCONNECT_REASON_NORMALNORMAL
PLANETKIT_DISCONNECT_REASON_DECLINEDECLINE
PLANETKIT_DISCONNECT_REASON_CELL_CALLCELL_CALL
PLANETKIT_DISCONNECT_REASON_INTERNAL_ERRORINTERNAL_ERROR
PLANETKIT_DISCONNECT_REASON_USER_ERRORUSER_ERROR
PLANETKIT_DISCONNECT_REASON_INTERNAL_KIT_ERRORINTERNAL_KIT_ERROR
PLANETKIT_DISCONNECT_REASON_AUDIO_TX_NO_SRCAUDIO_TX_NO_SRC
PLANETKIT_DISCONNECT_REASON_CANCELCANCEL
PLANETKIT_DISCONNECT_REASON_BUSYBUSY
PLANETKIT_DISCONNECT_REASON_NOANSWERNOANSWER
PLANETKIT_DISCONNECT_REASON_ALREADY_GOT_A_CALLALREADY_GOT_A_CALL
PLANETKIT_DISCONNECT_REASON_MULTIDEV_IN_USEMULTIDEV_IN_USE
PLANETKIT_DISCONNECT_REASON_MULTIDEV_ANSWERMULTIDEV_ANSWER
PLANETKIT_DISCONNECT_REASON_MULTIDEV_DECLINEMULTIDEV_DECLINE
PLANETKIT_DISCONNECT_REASON_MAX_CALL_TIME_EXCEEDEDMAX_CALL_TIME_EXCEEDED
PLANETKIT_DISCONNECT_REASON_NETWORK_UNSTABLENETWORK_UNSTABLE
PLANETKIT_DISCONNECT_REASON_PUSH_ERRORPUSH_ERROR
PLANETKIT_DISCONNECT_REASON_AUTH_ERRORAUTH_ERROR
PLANETKIT_DISCONNECT_REASON_RELEASED_CALLRELEASED_CALL
PLANETKIT_DISCONNECT_REASON_SERVER_INTERNAL_ERRORSERVER_INTERNAL_ERROR
PLANETKIT_DISCONNECT_REASON_UNAVAILABLE_NETWORKUNAVAILABLE_NETWORK
PLANETKIT_DISCONNECT_REASON_APP_DESTROYAPP_DESTROY
PLANETKIT_DISCONNECT_REASON_SYSTEM_SLEEPSYSTEM_SLEEP
PLANETKIT_DISCONNECT_REASON_SYSTEM_LOGOFFSYSTEM_LOGOFF
PLANETKIT_DISCONNECT_REASON_MTU_EXCEEDEDMTU_EXCEEDED
PLANETKIT_DISCONNECT_REASON_ROOM_IS_FULLROOM_IS_FULL
PLANETKIT_DISCONNECT_REASON_ALONE_KICK_OUTALONE_KICK_OUT
PLANETKIT_DISCONNECT_REASON_REASON_ROOM_NOT_FOUNDROOM_NOT_FOUND
PLANETKIT_DISCONNECT_REASON_SERVICE_ACCESS_TOKEN_ERRORSERVICE_ACCESS_TOKEN_ERROR
PLANETKIT_DISCONNECT_REASON_SERVICE_INVALID_IDSERVICE_INVALID_ID
PLANETKIT_DISCONNECT_REASON_SERVICE_MAINTENANCESERVICE_MAINTENANCE
PLANETKIT_DISCONNECT_REASON_SERVICE_BUSYSERVICE_BUSY
PLANETKIT_DISCONNECT_REASON_SERVICE_INTERNAL_ERRORSERVICE_INTERNAL_ERROR
PLANETKIT_DISCONNECT_REASON_SERVICE_HTTP_ERRORSERVICE_HTTP_ERROR
PLANETKIT_DISCONNECT_REASON_SERVICE_HTTP_CONNECTION_TIME_OUTSERVICE_HTTP_CONNECTION_TIME_OUT
PLANETKIT_DISCONNECT_REASON_SERVICE_INCOMPATIBLE_PLANETKIT_VERSERVICE_INCOMPATIBLE_PLANETKIT_VER
PLANETKIT_DISCONNECT_REASON_SERVICE_TOO_MANY_REQUESTSSERVICE_TOO_MANY_REQUESTS

Disconnect reasons exclusive to WebPlanetKit

The following disconnect reasons are available only in WebPlanetKit.

Enum constantValueCall typeDisconnect sourceDescription
PLANETKIT_DISCONNECT_REASON_WEB_RTC_ABORT1601BothCALLER, PARTICIPANTAlthough the user and operating system both granted access to the hardware device, some problem occurred which prevented the device from being used.
PLANETKIT_DISCONNECT_REASON_WEB_RTC_NOT_ALLOWED1602BothCALLER, PARTICIPANTA browser is not permitted access to the device.
PLANETKIT_DISCONNECT_REASON_WEB_RTC_NOT_FOUND1603BothCALLER, PARTICIPANTNo media tracks of the specified type that satisfy the given constraints were found.
PLANETKIT_DISCONNECT_REASON_WEB_RTC_NOT_READABLE1604BothCALLER, PARTICIPANTAlthough the user granted permission to use the matching devices, a hardware error occurred which prevented access to the device.
PLANETKIT_DISCONNECT_REASON_WEB_RTC_OVERCONSTRAINED1605BothCALLER, PARTICIPANTThe specified constraints resulted in no candidate devices which met the criteria requested.
PLANETKIT_DISCONNECT_REASON_WEB_RTC_SECURITY_ERROR1606BothCALLER, PARTICIPANTUser media support is disabled on the Document on which getUserMedia() was called.
PLANETKIT_DISCONNECT_REASON_WEB_RTC_TYPE_ERROR1607BothCALLER, PARTICIPANTDisconnected by wrong constraints of getUserMedia().
PLANETKIT_DISCONNECT_REASON_WEB_NO_MEDIA_PACKET1608BothCLOUD_SERVERThe server disconnected a call because the server did not receive any media packet during conference.
PLANETKIT_DISCONNECT_REASON_WEB_CALL_CONNECT_FAIL_BY_SERVER1609BothCALLER, PARTICIPANTFailed to connect to LINE Web Planet server because of server failure.
PLANETKIT_DISCONNECT_REASON_WEB_CALL_CONNECT_FAIL_BY_CLIENT1610BothCALLER, PARTICIPANTFailed to connect to LINE Web Planet server because of client's timeout.
PLANETKIT_DISCONNECT_REASON_WEB_SIGNALING_UNEXPECTED_DISCONNECTED1611BothCALLER, PARTICIPANTConnection to the LINE Web Planet server is unexpectedly disconnected or WebSocket of client has problem.