Skip to content

Unmute Emergency Call ​

Unmutes the local audio stream of an active emergency call. This restores audio transmission so the emergency operator can hear you again.

Signature ​

// Callback version
fun unmuteEmergencyCall(
  callId: EmergencyCallId,
  callback: (Exception?) -> Unit
)

// Suspend version
suspend fun unmuteEmergencyCall(
  callId: EmergencyCallId
)

Parameters ​

ParameterTypeRequiredDescription
callIdstringYesUnique identifier of the emergency call to unmute

Return Type ​

Returns void (or Promise<void> for JavaScript/TypeScript). The method completes successfully when the call is unmuted, or throws an error if the operation fails.

Usage Example ​

// Callback

client.unmuteEmergencyCall("callId") { err ->
    err?.let {
        // Handle Error in unmuting emergency call
        println("Error in unmuting emergency call: $err")
    } ?: run {
        println("Emergency call unmuted successfully")
    }
}

// Coroutine
try {
    client.unmuteEmergencyCall("callId")
    println("Emergency call unmuted successfully")
} catch (e: Exception) {
    // Handle Error in unmuting emergency call
}

Errors ​

Error TypeError CodeDescription
INTERNAL_ERRORvoice:error:no_call_foundNo emergency call found with the specified call ID
INTERNAL_ERRORMedia client errorsErrors from the media layer when attempting to unmute audio
UNKNOWN_ERRORN/AUnexpected error that should be reported to support

For complete error reference and handling guidelines, see Error Reference.

Notes ​

  • Unmuting restores audio transmission to the emergency operator
  • Use muteEmergencyCall to mute the call
  • The call must be active and have an established media connection
  • This is a local media operation and does not require server communication

Built with VitePress.