mod core;
mod core_media;
mod esl_array;
#[cfg(feature = "esl")]
mod esl_headers;
mod sip_multipart;
mod sip_passthrough;
mod sofia;
pub use self::core::{ChannelVariable, ParseChannelVariableError};
pub use core_media::{CoreMediaVariable, ParseCoreMediaVariableError, RtpStatUnit};
pub use esl_array::{EslArray, EslArrayError, MAX_ARRAY_ITEMS};
#[cfg(feature = "esl")]
pub use esl_headers::EslHeaders;
pub use sip_multipart::{MultipartBody, MultipartItem};
pub use sip_passthrough::{
InvalidHeaderName, ParseSipPassthroughError, SipHeaderPrefix, SipPassthroughHeader,
};
pub use sofia::{ParseSofiaVariableError, SofiaVariable};
pub trait VariableName {
fn as_str(&self) -> &str;
}
impl VariableName for ChannelVariable {
fn as_str(&self) -> &str {
ChannelVariable::as_str(self)
}
}
impl VariableName for SofiaVariable {
fn as_str(&self) -> &str {
SofiaVariable::as_str(self)
}
}
impl VariableName for CoreMediaVariable {
fn as_str(&self) -> &str {
CoreMediaVariable::as_str(self)
}
}