Skip to main content
Version: 6.0

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.
codeStringstringName 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
NORMALNORMAL
DECLINEDECLINE
CELL_CALLCELL_CALL
INTERNAL_ERRORINTERNAL_ERROR
USER_ERRORUSER_ERROR
INTERNAL_KIT_ERRORINTERNAL_KIT_ERROR
AUDIO_TX_NO_SRCAUDIO_TX_NO_SRC
CANCELCANCEL
BUSYBUSY
NOANSWERNOANSWER
ALREADY_GOT_A_CALLALREADY_GOT_A_CALL
MULTIDEV_IN_USEMULTIDEV_IN_USE
MULTIDEV_ANSWERMULTIDEV_ANSWER
MULTIDEV_DECLINEMULTIDEV_DECLINE
MAX_CALL_TIME_EXCEEDEDMAX_CALL_TIME_EXCEEDED
NETWORK_UNSTABLENETWORK_UNSTABLE
PUSH_ERRORPUSH_ERROR
AUTH_ERRORAUTH_ERROR
RELEASED_CALLRELEASED_CALL
SERVER_INTERNAL_ERRORSERVER_INTERNAL_ERROR
UNAVAILABLE_NETWORKUNAVAILABLE_NETWORK
APP_DESTROYAPP_DESTROY
SYSTEM_SLEEPSYSTEM_SLEEP
SYSTEM_LOGOFFSYSTEM_LOGOFF
MTU_EXCEEDEDMTU_EXCEEDED
ROOM_IS_FULLROOM_IS_FULL
ALONE_KICK_OUTALONE_KICK_OUT
ROOM_NOT_FOUNDROOM_NOT_FOUND
SERVICE_ACCESS_TOKEN_ERRORSERVICE_ACCESS_TOKEN_ERROR
SERVICE_INVALID_IDSERVICE_INVALID_ID
SERVICE_MAINTENANCESERVICE_MAINTENANCE
SERVICE_BUSYSERVICE_BUSY
SERVICE_INTERNAL_ERRORSERVICE_INTERNAL_ERROR
SERVICE_HTTP_ERRORSERVICE_HTTP_ERROR
SERVICE_HTTP_CONNECTION_TIME_OUTSERVICE_HTTP_CONNECTION_TIME_OUT
SERVICE_INCOMPATIBLE_PLANETKIT_VERSERVICE_INCOMPATIBLE_PLANETKIT_VER
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
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.
WEB_RTC_NOT_ALLOWED1602BothCALLER, PARTICIPANTA browser is not permitted access to the device.
WEB_RTC_NOT_FOUND1603BothCALLER, PARTICIPANTNo media tracks of the specified type that satisfy the given constraints were found.
WEB_RTC_NOT_READABLE1604BothCALLER, PARTICIPANTAlthough the user granted permission to use the matching devices, a hardware error occurred which prevented access to the device.
WEB_RTC_OVERCONSTRAINED1605BothCALLER, PARTICIPANTThe specified constraints resulted in no candidate devices which met the criteria requested.
WEB_RTC_SECURITY_ERROR1606BothCALLER, PARTICIPANTUser media support is disabled on the Document on which getUserMedia() was called.
WEB_RTC_TYPE_ERROR1607BothCALLER, PARTICIPANTDisconnected by wrong constraints of getUserMedia().
WEB_NO_MEDIA_PACKET1608BothCLOUD_SERVERThe server disconnected a call because the server did not receive any media packet during conference.
WEB_CALL_CONNECT_FAIL_BY_SERVER1609BothCALLER, PARTICIPANTFailed to connect to LINE Web Planet server because of server failure.
WEB_CALL_CONNECT_FAIL_BY_CLIENT1610BothCALLER, PARTICIPANTFailed to connect to LINE Web Planet server because of client's timeout.
WEB_SIGNALING_UNEXPECTED_DISCONNECTED1611BothCALLER, PARTICIPANTConnection to the LINE Web Planet server is unexpectedly disconnected or WebSocket of client has problem.