Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::SipTransport Class Reference

SIP transport wraps pjsip_transport. More...

#include <siptransport.h>

Collaboration diagram for jami::SipTransport:
Collaboration graph

Public Member Functions

void addStateListener (uintptr_t lid, SipTransportStateCallback cb)
 
std::string_view deviceId () const
 
pjsip_transportget ()
 
const std::weak_ptr< SIPAccountBase > & getAccount () const
 
const TlsInfosgetTlsInfos () const
 
uint16_t getTlsMtu ()
 
bool isConnected () const noexcept
 Only makes sense for connection-oriented transports.
 
bool isSecure () const
 
bool removeStateListener (uintptr_t lid)
 
void setAccount (const std::shared_ptr< SIPAccountBase > &account)
 
void setDeviceId (const std::string &deviceId)
 
 SipTransport (pjsip_transport *)
 
 SipTransport (pjsip_transport *, const std::shared_ptr< TlsListener > &)
 
 SipTransport (pjsip_transport *t, const std::shared_ptr< dht::crypto::Certificate > &peerCertficate)
 
void stateCallback (pjsip_transport_state state, const pjsip_transport_state_info *info)
 
 ~SipTransport ()
 

Static Public Member Functions

static bool isAlive (pjsip_transport_state state)
 
static const charstateToStr (pjsip_transport_state state)
 

Detailed Description

SIP transport wraps pjsip_transport.

Definition at line 87 of file siptransport.h.

Constructor & Destructor Documentation

◆ SipTransport() [1/3]

jami::SipTransport::SipTransport ( pjsip_transport t)

Definition at line 67 of file siptransport.cpp.

References jami::emitSignal(), and JAMI_DEBUG.

Here is the call graph for this function:

◆ SipTransport() [2/3]

jami::SipTransport::SipTransport ( pjsip_transport t,
const std::shared_ptr< TlsListener > &  l 
)

Definition at line 82 of file siptransport.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ SipTransport() [3/3]

jami::SipTransport::SipTransport ( pjsip_transport t,
const std::shared_ptr< dht::crypto::Certificate > &  peerCertficate 
)

Definition at line 88 of file siptransport.cpp.

References jami::emitSignal(), and jami::TlsInfos::peerCert.

Here is the call graph for this function:

◆ ~SipTransport()

jami::SipTransport::~SipTransport ( )

Definition at line 95 of file siptransport.cpp.

References jami::emitSignal(), and JAMI_DEBUG.

Here is the call graph for this function:

Member Function Documentation

◆ addStateListener()

void jami::SipTransport::addStateListener ( uintptr_t  lid,
SipTransportStateCallback  cb 
)

Definition at line 156 of file siptransport.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ deviceId()

std::string_view jami::SipTransport::deviceId ( ) const
inline

Definition at line 118 of file siptransport.h.

Referenced by setDeviceId().

◆ get()

pjsip_transport * jami::SipTransport::get ( )
inline

Definition at line 103 of file siptransport.h.

◆ getAccount()

const std::weak_ptr< SIPAccountBase > & jami::SipTransport::getAccount ( ) const
inline

Definition at line 120 of file siptransport.h.

◆ getTlsInfos()

const TlsInfos & jami::SipTransport::getTlsInfos ( ) const
inline

Definition at line 110 of file siptransport.h.

◆ getTlsMtu()

uint16_t jami::SipTransport::getTlsMtu ( )

Definition at line 177 of file siptransport.cpp.

◆ isAlive()

bool jami::SipTransport::isAlive ( pjsip_transport_state  state)
static

Definition at line 104 of file siptransport.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ isConnected()

bool jami::SipTransport::isConnected ( ) const
inlinenoexcept

Only makes sense for connection-oriented transports.

Definition at line 115 of file siptransport.h.

◆ isSecure()

bool jami::SipTransport::isSecure ( ) const
inline

Definition at line 108 of file siptransport.h.

References jami::emitSignal().

Referenced by stateCallback().

Here is the call graph for this function:

◆ removeStateListener()

bool jami::SipTransport::removeStateListener ( uintptr_t  lid)

Definition at line 165 of file siptransport.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ setAccount()

void jami::SipTransport::setAccount ( const std::shared_ptr< SIPAccountBase > &  account)
inline

Definition at line 119 of file siptransport.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setDeviceId()

void jami::SipTransport::setDeviceId ( const std::string &  deviceId)
inline

Definition at line 117 of file siptransport.h.

References deviceId().

Here is the call graph for this function:

◆ stateCallback()

void jami::SipTransport::stateCallback ( pjsip_transport_state  state,
const pjsip_transport_state_info info 
)

Definition at line 117 of file siptransport.cpp.

References jami::TlsInfos::cipher, jami::emitSignal(), isSecure(), jami::TlsInfos::peerCert, jami::TlsInfos::proto, and jami::TlsInfos::verifyStatus.

Here is the call graph for this function:

◆ stateToStr()

const char * jami::SipTransport::stateToStr ( pjsip_transport_state  state)
static

The documentation for this class was generated from the following files: