Skip to content

Mute Emergency Call

Mutes the local audio stream of an active emergency call. When muted, the emergency operator will not be able to hear you, but you will still be able to hear them.

Signature

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

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

Parameters

ParameterTypeRequiredDescription
callIdstringYesUnique identifier of the emergency call to mute

Return Type

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

Usage Example

 // Callback

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

 // Coroutine
 try {
     client.muteEmergencyCall("callId")
     println("Emergency call muted successfully")
 } catch (e: Exception) {
     // Handle Error in muting 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 mute audio
UNKNOWN_ERRORN/AUnexpected error that should be reported to support

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

Notes

  • Muting affects only the local microphone - you will still hear the emergency operator
  • Use unmuteEmergencyCall to unmute 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.