Skip to main content
Version: 1.0

Disconnect reasons

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.

You can get the information from the following parameters of the onDisconnected callback.

ParameterTypeDescription
reasonPlanetKitDisconnectReasonDisconnect reason
sourcePlanetKitDisconnectSourceDisconnect source
byRemoteboolFlag indicating whether the disconnection was initiated by the remote peer.

Disconnect sources

The following types of disconnect sources are available in the PlanetKitDisconnectSource enumeration.

Enumeration caseValueDescription
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 disconnect reasons are available in the PlanetKitDisconnectReason enumeration. For more information on each reason, refer to the links below:

Enumeration caseDisconnect reason
normalNORMAL
declineDECLINE
cellCallCELL_CALL
internalErrorINTERNAL_ERROR
userErrorUSER_ERROR
internalKitErrorINTERNAL_KIT_ERROR
micNoSourceAUDIO_TX_NO_SRC
cancelCANCEL
busyBUSY
noAnswerNOANSWER
alreadyGotACallALREADY_GOT_A_CALL
multiDeviceInUseMULTIDEV_IN_USE
multiDeviceAnswerMULTIDEV_ANSWER
multiDeviceDeclineMULTIDEV_DECLINE
maxCallTimeExceededMAX_CALL_TIME_EXCEEDED
networkUnstableNETWORK_UNSTABLE
pushErrorPUSH_ERROR
authErrorAUTH_ERROR
releasedCallRELEASED_CALL
serverInternalErrorSERVER_INTERNAL_ERROR
unavailableNetworkUNAVAILABLE_NETWORK
appDestroyAPP_DESTROY
systemSleepSYSTEM_SLEEP
systemLogoffSYSTEM_LOGOFF
mtuExceededMTU_EXCEEDED
appServerDataErrorAPP_SERVER_DATA_ERROR
desktopScreenLockedDESKTOP_SCREEN_LOCKED
roomIsFullROOM_IS_FULL
aloneKickOutALONE_KICK_OUT
roomNotFoundROOM_NOT_FOUND
anotherInstanceTryToJoinANOTHER_INSTANCE_TRY_TO_JOIN
serviceAccessTokenErrorSERVICE_ACCESS_TOKEN_ERROR
serviceInvalidIDSERVICE_INVALID_ID
serviceMaintenanceSERVICE_MAINTENANCE
serviceBusySERVICE_BUSY
serviceInternalErrorSERVICE_INTERNAL_ERROR
serviceHttpErrorSERVICE_HTTP_ERROR
serviceHttpConnectionTimeOutSERVICE_HTTP_CONNECTION_TIME_OUT
serviceHttpInvalidPeerCertSERVICE_HTTP_INVALID_PEER_CERT
serviceHttpConnectFailSERVICE_HTTP_CONNECT_FAIL
serviceHttpInvalidUrlSERVICE_HTTP_INVALID_URL
serviceIncompatiblePlanetKitVerSERVICE_INCOMPATIBLE_PLANETKIT_VER
serviceTooManyRequestsSERVICE_TOO_MANY_REQUESTS