Skip to content

Disable Earmuff on Emergency Call

Disables earmuff mode on an active emergency call. This restores incoming audio so you can hear the emergency operator again.

Signature

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

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

Parameters

ParameterTypeRequiredDescription
callIdstringYesUnique identifier of the emergency call

Return Type

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

Usage Example

 // Callback

 client.disableEarmuffEmergencyCall("callId") { err ->
     err?.let {
         // Handle Error in disabling earmuff on emergency call
         println("Error in disabling earmuff on emergency call: $err")
     } ?: run {
         println("Earmuff disabled on emergency call successfully")
     }
 }

 // Coroutine
 try {
     client.disableEarmuffEmergencyCall("callId")
     println("Earmuff disabled on emergency call successfully")
 } catch (e: Exception) {
     // Handle Error in disabling earmuff on 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 disable earmuff
UNKNOWN_ERRORN/AUnexpected error that should be reported to support

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

Notes

  • Disabling earmuff restores incoming audio from the emergency operator
  • Use enableEarmuffEmergencyCall to enable earmuff mode
  • 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.