[][src]Struct libsip::client::SoftPhone

pub struct SoftPhone { /* fields omitted */ }

Simple SIP client for implementing softphones. Currently the only thing implemented is registration and sending text messages. The only other feature planned is an interface for sending & receiving calls.

Methods

impl SoftPhone[src]

pub fn new(local_uri: Uri, account_uri: Uri) -> SoftPhone[src]

Create a new SoftPhone client. local_uri is the SipUri that you listen on and account_uri is the uri of your SIP user account.

pub fn registry(&self) -> &RegistrationManager[src]

Return a reference to the sip registration manager.

pub fn registry_mut(&mut self) -> &mut RegistrationManager[src]

Return a mutable reference tp the sip registration manager.

pub fn messaging(&self) -> &MessageWriter[src]

Return a reference to the message writer.

pub fn messaging_mut(&mut self) -> &mut MessageWriter[src]

Return a mutable reference to the MessageWriter.

pub fn header_cfg(&self) -> &HeaderWriteConfig[src]

pub fn header_cfg_mut(&mut self) -> &mut HeaderWriteConfig[src]

pub fn get_register_request(&mut self) -> IoResult<SipMessage>[src]

Simple pass through method to get a registration request.

pub fn set_register_challenge(&mut self, c: SipMessage) -> IoResult<()>[src]

Set the received auth challenge request.

pub fn write_message(&mut self, b: Vec<u8>, uri: Uri) -> IoResult<SipMessage>[src]

Send a new Message to uri.

pub fn cancel_response(
    &mut self,
    headers: &Headers
) -> IoResult<(SipMessage, SipMessage)>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,