pub struct SessionState {
pub channel_name: Option<String>,
pub channel_state: Option<String>,
pub initial_context: Option<String>,
pub dialplan_context: Option<String>,
pub dialplan_from: Option<String>,
pub dialplan_to: Option<String>,
pub call_direction: Option<CallDirection>,
pub caller_id_number: Option<String>,
pub destination_number: Option<String>,
pub other_leg_uuid: Option<String>,
pub variables: HashMap<String, String>,
/* private fields */
}Expand description
Mutable per-UUID state accumulator, updated as entries are processed.
Fields are None until the corresponding data is first seen in the stream.
Variables accumulate from CHANNEL_DATA dumps, set()/export() executions,
SET/EXPORT log lines, and inline variable_* lines.
Fields§
§channel_name: Option<String>None until a Channel-Name field is encountered.
channel_state: Option<String>None until a state change or Channel-State field is encountered.
initial_context: Option<String>First dialplan context seen; set once and never overwritten.
dialplan_context: Option<String>Current dialplan context; updated on each transfer/continue.
dialplan_from: Option<String>Source extension in the dialplan routing; None until a dialplan line is processed.
dialplan_to: Option<String>Target extension in the dialplan routing; None until a dialplan line is processed.
call_direction: Option<CallDirection>Call direction from Call-Direction CHANNEL_DATA field; None until seen.
caller_id_number: Option<String>Caller ID number from Caller-Caller-ID-Number CHANNEL_DATA field; None until seen.
destination_number: Option<String>Destination number from Caller-Destination-Number CHANNEL_DATA field; None until seen.
other_leg_uuid: Option<String>Other leg’s UUID; None until bridged. Set from Originate Resulted in Success on A-leg,
and from New Channel on B-leg (back-pointing to A-leg via originate context).
variables: HashMap<String, String>All variables learned so far, with the variable_ prefix stripped from names.
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more