pub struct Account {Show 14 fields
pub username: String,
pub domain: String,
pub password: String,
pub display_name: Option<String>,
pub transport: Option<String>,
pub auth_user: Option<String>,
pub outbound: Option<String>,
pub stun_server: Option<String>,
pub media_enc: Option<String>,
pub regint: Option<u32>,
pub mwi: bool,
pub dtmf_mode: Option<String>,
pub catchall: bool,
pub audio_codecs: Vec<String>,
}Expand description
A SIP account to register, independent of any ringo profile/config. Callers (the softphone or the scenario runner) build this from their own source.
Fields§
§username: String§domain: String§password: String§display_name: Option<String>§transport: Option<String>§auth_user: Option<String>§outbound: Option<String>§stun_server: Option<String>§media_enc: Option<String>§regint: Option<u32>§mwi: bool§dtmf_mode: Option<String>DTMF transmission mode (rtpevent / info / auto). info sends DTMF as
SIP INFO, independent of the RTP audio stream — needed where the audio TX
may be idle (e.g. headless with no clocked source). None keeps the
backend’s default.
catchall: boolMark this account as a baresip catchall UA: incoming INVITEs whose
request-URI user matches no registered contact-user fall back to this UA
instead of being rejected with 404 (UA not found). Needed when a
provider delivers calls addressed to identities other than the
registration username (the request-URI user is the called number/identity,
not the account login), which baresip’s contact-user match would reject.
Only safe with a single registered UA per process — with several, baresip
routes the fallback to just one of them.
audio_codecs: Vec<String>Restrict/order the audio codecs offered for this account, most-preferred
first (baresip account param audio_codecs). Names as baresip knows them,
e.g. ["opus", "PCMU", "PCMA"]. Empty = baresip’s default codec set/order.