Skip to main content

BackendOptions

Struct BackendOptions 

Source
pub struct BackendOptions {
    pub audio_driver: Option<String>,
    pub audio_player_device: Option<String>,
    pub audio_source_device: Option<String>,
    pub audio_alert_device: Option<String>,
    pub sip_cafile: Option<String>,
    pub sip_capath: Option<String>,
    pub max_calls: Option<u32>,
    pub hold_other_calls: Option<bool>,
    pub local_timeout_s: Option<u32>,
    pub user_agent: Option<String>,
    pub extra: Vec<(String, String)>,
    pub record_audio: bool,
}
Expand description

Overrides for auto-detected backend settings. Any None/empty field is auto-detected at spawn time.

Fields§

§audio_driver: Option<String>§audio_player_device: Option<String>§audio_source_device: Option<String>§audio_alert_device: Option<String>§sip_cafile: Option<String>§sip_capath: Option<String>

None = auto-detect; Some("") = explicitly disable.

§max_calls: Option<u32>

Max simultaneous calls (call_max_calls). None = 4.

§hold_other_calls: Option<bool>

Auto-hold the active call when another comes up / the user switches (call_hold_other_calls). None = on. The scenario runner turns this off so a test keeps explicit control over hold/resume.

§local_timeout_s: Option<u32>

Outgoing-call ring timeout in seconds (call_local_timeout). None = 120.

§user_agent: Option<String>

SIP User-Agent string passed to ua_init (e.g. ringo-phone/0.11.0). None = bare ringo. Set by the binary so it carries its own version.

§extra: Vec<(String, String)>

Arbitrary extra config lines appended at the end (key, value).

§record_audio: bool

Capture the full call’s sent + received audio in-process (for the scenario runner’s --save-audio). When off, only a short rolling window is retained for verify-audio. The softphone leaves this off.

Trait Implementations§

Source§

impl Clone for BackendOptions

Source§

fn clone(&self) -> BackendOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BackendOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BackendOptions

Source§

fn default() -> BackendOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.