[−][src]Struct libsip::SoftPhone
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.
Implementations
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 invite(&self) -> &InviteWriter
[src]
Return a reference to the invite writer.
pub fn invite_mut(&mut self) -> &mut InviteWriter
[src]
Return a mutable reference to the InviteWriter.
pub fn header_cfg(&self) -> &HeaderWriteConfig
[src]
Return a reference to the used HeaderWriteConfig.
pub fn header_cfg_mut(&mut self) -> &mut HeaderWriteConfig
[src]
Return a mutable reference to the used HeaderWriteConfig.
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 send_invite(&mut self, body: Vec<u8>, uri: Uri) -> IoResult<SipMessage>
[src]
Send a new Invite Request to uri
.
pub fn get_received_request(&mut self, msg: SipMessage) -> IoResult<SipMessage>
[src]
Give the softphone a received call, returns the ringing response to be sent.
pub fn get_accept_request(
&mut self,
body: Vec<u8>,
call: &str
) -> IoResult<SipMessage>
[src]
&mut self,
body: Vec<u8>,
call: &str
) -> IoResult<SipMessage>
Get a SIP Message that will accept a previously recieved invitation.
pub fn get_bye_request(&mut self, call: &str) -> IoResult<SipMessage>
[src]
Get a SIP message that will close a previously received invitation.
pub fn get_cancel_request(
&mut self,
call: &str
) -> IoResult<(SipMessage, SipMessage)>
[src]
&mut self,
call: &str
) -> IoResult<(SipMessage, SipMessage)>
Get the messages required to cancel a invitation.
Auto Trait Implementations
impl RefUnwindSafe for SoftPhone
impl Send for SoftPhone
impl Sync for SoftPhone
impl Unpin for SoftPhone
impl UnwindSafe for SoftPhone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,