Expand description
FreeSWITCH protocol types: channel state, events, headers, commands, and variables.
This crate provides the domain types for FreeSWITCH’s Event Socket Library (ESL) protocol without any async runtime dependency. Use it standalone for CDR parsing, config generation, command building, or channel variable validation.
For async ESL transport (connecting to FreeSWITCH, sending commands, receiving events),
see the freeswitch-esl-tokio crate which
re-exports everything from this crate.
Re-exports§
pub use channel::AnswerState;pub use channel::CallDirection;pub use channel::CallState;pub use channel::ChannelState;pub use channel::ChannelTimetable;pub use channel::HangupCause;pub use channel::ParseAnswerStateError;pub use channel::ParseCallDirectionError;pub use channel::ParseCallStateError;pub use channel::ParseChannelStateError;pub use channel::ParseHangupCauseError;pub use channel::ParseTimetableError;pub use channel::TimetablePrefix;pub use commands::Application;pub use commands::BridgeDialString;pub use commands::DialString;pub use commands::DialplanType;pub use commands::Endpoint;pub use commands::GroupCallOrder;pub use commands::Originate;pub use commands::OriginateError;pub use commands::OriginateTarget;pub use commands::ParseDialplanTypeError;pub use commands::ParseGroupCallOrderError;pub use commands::UuidAnswer;pub use commands::UuidBridge;pub use commands::UuidDeflect;pub use commands::UuidGetVar;pub use commands::UuidHold;pub use commands::UuidKill;pub use commands::UuidSendDtmf;pub use commands::UuidSetVar;pub use commands::UuidTransfer;pub use commands::Variables;pub use commands::VariablesType;pub use event::EslEvent;pub use event::EslEventPriority;pub use event::EslEventType;pub use event::EventFormat;pub use event::ParseEventFormatError;pub use event::ParseEventTypeError;pub use event::ParsePriorityError;pub use headers::EventHeader;pub use headers::ParseEventHeaderError;pub use lookup::HeaderLookup;pub use variables::ChannelVariable;pub use variables::EslArray;pub use variables::MultipartBody;pub use variables::MultipartItem;pub use variables::ParseChannelVariableError;pub use variables::SipCallInfo;pub use variables::SipCallInfoEntry;pub use variables::SipCallInfoError;pub use variables::SipGeolocation;pub use variables::SipGeolocationRef;pub use variables::VariableName;
Modules§
- channel
- Channel-related data types extracted from ESL event headers.
- commands
- Command string builders for
api()andbgapi(). - event
- ESL event types and structures
- headers
- Typed event header names for FreeSWITCH ESL events.
- lookup
- Shared trait for typed header lookups from any key-value store.
- variables
- Channel variable types: format parsers (
ARRAY::, SIP multipart) and typed variable name enums.
Constants§
- DEFAULT_
ESL_ PASSWORD - Default FreeSWITCH ESL password (
ClueCon). - DEFAULT_
ESL_ PORT - Default FreeSWITCH ESL port for inbound connections.