1#![recursion_limit = "512"]
5pub use sip_header;
22pub use sip_header::define_header_enum;
23pub use sip_header::sip_uri;
24
25#[macro_use]
26mod macros;
27
28pub mod channel;
29#[cfg(feature = "esl")]
30pub mod commands;
31#[cfg(feature = "esl")]
32pub mod event;
33pub mod headers;
34pub mod lookup;
35#[cfg(feature = "esl")]
36pub mod lossy_values;
37pub mod prelude;
38pub mod sofia;
39pub mod variables;
40#[doc(hidden)]
41pub mod wire_safety;
42
43pub const DEFAULT_ESL_PORT: u16 = 8021;
45
46pub const DEFAULT_ESL_PASSWORD: &str = "ClueCon";
48
49pub use channel::{
50 AnswerState, CallDirection, CallState, ChannelState, ChannelTimetable, HangupCause,
51 ParseAnswerStateError, ParseCallDirectionError, ParseCallStateError, ParseChannelStateError,
52 ParseHangupCauseError, ParseTimetableError, TimetablePrefix,
53};
54#[cfg(feature = "esl")]
55pub use commands::{
56 Application, BridgeDialString, DialString, DialplanType, Endpoint, GroupCallOrder, Originate,
57 OriginateError, OriginateTarget, ParseDialplanTypeError, ParseGroupCallOrderError, UuidAnswer,
58 UuidBridge, UuidDeflect, UuidGetVar, UuidHold, UuidKill, UuidSendDtmf, UuidSetVar,
59 UuidTransfer, Variables, VariablesType,
60};
61#[cfg(feature = "esl")]
62pub use event::{
63 EslEvent, EslEventPriority, EslEventType, EventFormat, EventSubscription,
64 EventSubscriptionError, ParseEventFormatError, ParseEventTypeError, ParsePriorityError,
65};
66pub use headers::{case_alias_key, normalize_header_key, EventHeader, ParseEventHeaderError};
67pub use lookup::HeaderLookup;
68#[cfg(feature = "esl")]
69pub use lossy_values::{LossyValue, LossyValues};
70pub use sip_header::{
71 extract_header, HistoryInfo, HistoryInfoEntry, HistoryInfoError, HistoryInfoReason,
72 ParseSipHeaderAddrError, ParseSipHeaderError, SipGeolocation, SipGeolocationRef, SipHeader,
73 SipHeaderAddr, SipHeaderLookup, UriInfo, UriInfoEntry, UriInfoError,
74};
75pub use sofia::{
76 GatewayPingStatus, GatewayRegState, ParseGatewayPingStatusError, ParseGatewayRegStateError,
77 ParseSipUserPingStatusError, ParseSofiaEventSubclassError, SipUserPingStatus, SofiaChannelName,
78 SofiaEventSubclass,
79};
80#[cfg(feature = "esl")]
81pub use variables::EslHeaders;
82pub use variables::{
83 ChannelVariable, CoreMediaVariable, EslArray, EslArrayError, MultipartBody, MultipartItem,
84 ParseChannelVariableError, ParseCoreMediaVariableError, RtpStatUnit, SipHeaderPrefix,
85 SipPassthroughHeader, VariableName, MAX_ARRAY_ITEMS,
86};