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
| Parameter | Type | Required | Description |
|---|---|---|---|
callId | string | Yes | Unique 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 Type | Error Code | Description |
|---|---|---|
INTERNAL_ERROR | voice:error:no_call_found | No emergency call found with the specified call ID |
INTERNAL_ERROR | Media client errors | Errors from the media layer when attempting to disable earmuff |
UNKNOWN_ERROR | N/A | Unexpected 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
enableEarmuffEmergencyCallto 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
Related Actions
enableEarmuffEmergencyCall- Enable earmuff mode