pub struct Caller { /* private fields */ }Expand description
Stateless helper bound to an account + endpoint.
Implementations§
Source§impl Caller
impl Caller
Sourcepub fn new(account: SipAccount, endpoint: Arc<SipEndpoint>) -> Self
pub fn new(account: SipAccount, endpoint: Arc<SipEndpoint>) -> Self
Construct a Caller for the given account and shared endpoint.
Sourcepub async fn dial(
&self,
target: Uri,
) -> Result<PendingDial, Box<dyn Error + Send + Sync>>
pub async fn dial( &self, target: Uri, ) -> Result<PendingDial, Box<dyn Error + Send + Sync>>
Place an outbound INVITE to target. Binds a local RTP socket,
builds the SDP offer, fires the INVITE in the background, and
returns a PendingDial the consumer pumps for state updates.
The destination is resolved from the account’s
server/port (typical: a SIP proxy). Use
dial_with_destination to route
directly to an explicit address (UA-to-UA, tests).
Auto Trait Implementations§
impl Freeze for Caller
impl !RefUnwindSafe for Caller
impl Send for Caller
impl Sync for Caller
impl Unpin for Caller
impl UnsafeUnpin for Caller
impl !UnwindSafe for Caller
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more