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.
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
Related API
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 constant | Value | Description |
---|---|---|
CALLEE | 1 | A callee in a 1-to-1 call |
CALLER | 2 | A caller in a 1-to-1 call |
PARTICIPANT | 3 | A participant in a group call |
CLOUD_SERVER | 4 | LINE Planet Cloud server |
APP_SERVER | 5 | Application 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 constant | Disconnect reason |
---|---|
NORMAL | NORMAL |
DECLINE | DECLINE |
CELL_CALL | CELL_CALL |
INTERNAL_ERROR | INTERNAL_ERROR |
USER_ERROR | USER_ERROR |
INTERNAL_KIT_ERROR | INTERNAL_KIT_ERROR |
AUDIO_TX_NO_SRC | AUDIO_TX_NO_SRC |
CANCEL | CANCEL |
BUSY | BUSY |
NO_ANSWER | NOANSWER |
ALREADY_GOT_A_CALL | ALREADY_GOT_A_CALL |
MULTIDEV_IN_USE | MULTIDEV_IN_USE |
MULTIDEV_ANSWER | MULTIDEV_ANSWER |
MULTIDEV_DECLINE | MULTIDEV_DECLINE |
MAX_CALL_TIME_EXCEEDED | MAX_CALL_TIME_EXCEEDED |
NETWORK_UNSTABLE | NETWORK_UNSTABLE |
PUSH_ERROR | PUSH_ERROR |
AUTH_ERROR | AUTH_ERROR |
RELEASED_CALL | RELEASED_CALL |
SERVER_INTERNAL_ERROR | SERVER_INTERNAL_ERROR |
UNAVAILABLE_NETWORK | UNAVAILABLE_NETWORK |
APP_DESTROY | APP_DESTROY |
SYSTEM_SLEEP | SYSTEM_SLEEP |
SYSTEM_LOGOFF | SYSTEM_LOGOFF |
MTU_EXCEEDED | MTU_EXCEEDED |
APP_SERVER_DATA_ERROR | APP_SERVER_DATA_ERROR |
DESKTOP_SCREEN_LOCKED | DESKTOP_SCREEN_LOCKED |
ROOM_IS_FULL | ROOM_IS_FULL |
ALONE_KICK_OUT | ALONE_KICK_OUT |
WRONG_ROOM_ATTRIBUTE | WRONG_ROOM_ATTR |
REASON_ROOM_NOT_FOUND | ROOM_NOT_FOUND |
ANOTHER_INSTANCE_TRY_TO_JOIN | ANOTHER_INSTANCE_TRY_TO_JOIN |
SERVICE_ACCESS_TOKEN_ERROR | SERVICE_ACCESS_TOKEN_ERROR |
SERVICE_INVALID_ID | SERVICE_INVALID_ID |
SERVICE_MAINTENANCE | SERVICE_MAINTENANCE |
SERVICE_BUSY | SERVICE_BUSY |
SERVICE_INTERNAL_ERROR | SERVICE_INTERNAL_ERROR |
SERVICE_HTTP_ERROR | SERVICE_HTTP_ERROR |
SERVICE_HTTP_CONNECTION_TIME_OUT | SERVICE_HTTP_CONNECTION_TIME_OUT |
SERVICE_HTTP_INVALID_PEER_CERT | SERVICE_HTTP_INVALID_PEER_CERT |
SERVICE_HTTP_CONNECT_FAIL | SERVICE_HTTP_CONNECT_FAIL |
SERVICE_HTTP_INVALID_URL | SERVICE_HTTP_INVALID_URL |
SERVICE_INCOMPATIBLE_PLANETKIT_VER | SERVICE_INCOMPATIBLE_PLANETKIT_VER |
SERVICE_TOO_MANY_REQUESTS | SERVICE_TOO_MANY_REQUESTS |