The signalwire.relay.constants module defines string and numeric constants used
throughout the RELAY namespace for call states, end reasons, connect states, event
types, message states, media operation states, and protocol settings.
RELAY protocol version. Value: {"major": 2, "minor": 0, "revision": 0}.
User agent string sent during connection. Value: "signalwire-agents-python/1.0".
Default WebSocket host for RELAY connections. Value: "relay.signalwire.com".
Internal method identifiers used by the RELAY WebSocket protocol.
Constants representing the lifecycle states of a RELAY call. A call progresses
through these states in order: created -> ringing -> answered -> ending -> ended.
Tuple of all call states in lifecycle order:
("created", "ringing", "answered", "ending", "ended").
Constants for the reason a call ended. Available in
CallStateEvent.end_reason when the call
reaches the ended state.
Constants representing the state of a call bridge (connect) operation. Used in
ConnectEvent.connect_state.
String constants for all RELAY event types. Use these when registering event
handlers with Call.on() or when
matching against RelayEvent.event_type.
Constants representing the lifecycle states of an SMS/MMS message. Outbound
messages progress through: queued -> initiated -> sent -> delivered
(or undelivered / failed). Inbound messages arrive with state received.
Tuple of terminal states that resolve a Message.wait() call:
("delivered", "undelivered", "failed").
Constants for audio playback operation states. Used in
PlayEvent.state.
Constants for recording operation states. Used in
RecordEvent.state.
Constants for detection operation types. Used in the type field of the
detect parameter passed to call.detect().
Constants for audio/video room join/leave states.
Configuration constants for the WebSocket reconnection strategy.