Skip to content

VoiceSessionEndReason

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The reason a voice connection closed.

[JsonConverter(typeof(JsonStringEnumConverter<VoiceSessionEndReason>))]
public enum VoiceSessionEndReason

Client = 0

The client sent stop or closed the socket cleanly.

DurationLimit = 2

The connection reached the maximum allowed duration.

Error = 3

An error closed the connection.

IdleTimeout = 1

The connection sat idle and timed out.

ServerShutdown = 4

The server is shutting down.

Written as a name in JSON; stored as smallint in the database. The numeric values are stable and must not change.