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
| Parameter | Type | Required | Description |
|---|---|---|---|
callId | string | Yes | Unique 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 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 unmute audio |
UNKNOWN_ERROR | N/A | Unexpected 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
muteEmergencyCallto 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
Related Actions
muteEmergencyCall- Mute the emergency call