Skip to main content
Version: 5.5

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 PlanetKitDisconnectedParam delivered by the onDisconnected callback for 1-to-1 calls or group calls.

// For 1-to-1 calls
fun onDisconnected(call: PlanetKitCall, param: PlanetKitDisconnectedParam)

// For group calls
fun onDisconnected(conference: PlanetKitConference, param: PlanetKitDisconnectedParam)

The PlanetKitDisconnectedParam class consists of the following properties.

data class PlanetKitDisconnectedParam(
// Disconnect reason
val reason: PlanetKitDisconnectReason,
// Disconnect source
val source: PlanetKitDisconnectSource,
// Whether the disconnection was made by a remote user or not
val byRemote: Boolean,
// User-defined release code
val userCode: String?
)

Disconnect sources

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

Enum constantValueDescription
CALLEE1A callee in a 1-to-1 call
CALLER2A caller in a 1-to-1 call
PARTICIPANT3A participant in a group call
CLOUD_SERVER4LINE Planet Cloud server
APP_SERVER5Application server

Disconnect reasons

The following disconnect reasons are available in the PlanetKitDisconnectReason enum class. 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
NO_ANSWERNOANSWER
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
APP_SERVER_DATA_ERRORAPP_SERVER_DATA_ERROR
DESKTOP_SCREEN_LOCKEDDESKTOP_SCREEN_LOCKED
ROOM_IS_FULLROOM_IS_FULL
ALONE_KICK_OUTALONE_KICK_OUT
WRONG_ROOM_ATTRIBUTEWRONG_ROOM_ATTR
REASON_ROOM_NOT_FOUNDROOM_NOT_FOUND
ANOTHER_INSTANCE_TRY_TO_JOINANOTHER_INSTANCE_TRY_TO_JOIN
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_HTTP_INVALID_PEER_CERTSERVICE_HTTP_INVALID_PEER_CERT
SERVICE_HTTP_CONNECT_FAILSERVICE_HTTP_CONNECT_FAIL
SERVICE_HTTP_INVALID_URLSERVICE_HTTP_INVALID_URL
SERVICE_INCOMPATIBLE_PLANETKIT_VERSERVICE_INCOMPATIBLE_PLANETKIT_VER
SERVICE_TOO_MANY_REQUESTSSERVICE_TOO_MANY_REQUESTS