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
| Parameter | Type | Required | Description |
|---|---|---|---|
callId | string | Yes | Unique 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 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 mute audio |
UNKNOWN_ERROR | N/A | Unexpected 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
unmuteEmergencyCallto 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
Related Actions
unmuteEmergencyCall- Unmute the emergency call