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

Manages the transports and receive callbacks from PJSIP. More...

#include <siptransport.h>

Collaboration diagram for jami::SipTransportBroker:
Collaboration graph

Public Member Functions

std::shared_ptr< SipTransportaddTransport (pjsip_transport *)
 
std::shared_ptr< SipTransportgetChanneledTransport (const std::shared_ptr< SIPAccountBase > &account, const std::shared_ptr< dhtnet::ChannelSocket > &socket, onShutdownCb &&cb)
 
std::shared_ptr< TlsListenergetTlsListener (const dhtnet::IpAddr &, const pjsip_tls_setting *)
 
std::shared_ptr< SipTransportgetTlsTransport (const std::shared_ptr< TlsListener > &, const dhtnet::IpAddr &remote, const std::string &remote_name={})
 
std::shared_ptr< SipTransportgetUdpTransport (const dhtnet::IpAddr &)
 
void shutdown ()
 Start graceful shutdown procedure for all transports.
 
 SipTransportBroker (pjsip_endpoint *endpt)
 
void transportStateChanged (pjsip_transport *, pjsip_transport_state, const pjsip_transport_state_info *)
 
 ~SipTransportBroker ()
 

Detailed Description

Manages the transports and receive callbacks from PJSIP.

Definition at line 148 of file siptransport.h.

Constructor & Destructor Documentation

◆ SipTransportBroker()

jami::SipTransportBroker::SipTransportBroker ( pjsip_endpoint endpt)

Definition at line 187 of file siptransport.cpp.

◆ ~SipTransportBroker()

jami::SipTransportBroker::~SipTransportBroker ( )

Definition at line 191 of file siptransport.cpp.

References JAMI_DEBUG, and shutdown().

Here is the call graph for this function:

Member Function Documentation

◆ addTransport()

std::shared_ptr< SipTransport > jami::SipTransportBroker::addTransport ( pjsip_transport t)

Definition at line 244 of file siptransport.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getChanneledTransport()

std::shared_ptr< SipTransport > jami::SipTransportBroker::getChanneledTransport ( const std::shared_ptr< SIPAccountBase > &  account,
const std::shared_ptr< dhtnet::ChannelSocket > &  socket,
onShutdownCb &&  cb 
)

Definition at line 391 of file siptransport.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getTlsListener()

std::shared_ptr< TlsListener > jami::SipTransportBroker::getTlsListener ( const dhtnet::IpAddr &  ipAddress,
const pjsip_tls_setting settings 
)

Definition at line 332 of file siptransport.cpp.

References jami::emitSignal(), JAMI_DEBUG, JAMI_ERROR, RETURN_IF_FAIL, and jami::sip_utils::sip_strerror().

Here is the call graph for this function:

◆ getTlsTransport()

std::shared_ptr< SipTransport > jami::SipTransportBroker::getTlsTransport ( const std::shared_ptr< TlsListener > &  l,
const dhtnet::IpAddr &  remote,
const std::string &  remote_name = {} 
)

Definition at line 349 of file siptransport.cpp.

References jami::emitSignal(), JAMI_DEBUG, JAMI_ERROR, and jami::sip_utils::sip_strerror().

Here is the call graph for this function:

◆ getUdpTransport()

std::shared_ptr< SipTransport > jami::SipTransportBroker::getUdpTransport ( const dhtnet::IpAddr &  ipAddress)

Definition at line 279 of file siptransport.cpp.

References jami::emitSignal(), JAMI_DEBUG, and JAMI_WARNING.

Here is the call graph for this function:

◆ shutdown()

void jami::SipTransportBroker::shutdown ( )

Start graceful shutdown procedure for all transports.

Definition at line 267 of file siptransport.cpp.

References jami::emitSignal().

Referenced by ~SipTransportBroker().

Here is the call graph for this function:

◆ transportStateChanged()

void jami::SipTransportBroker::transportStateChanged ( pjsip_transport tp,
pjsip_transport_state  state,
const pjsip_transport_state_info info 
)

Definition at line 202 of file siptransport.cpp.

References jami::emitSignal(), JAMI_DEBUG, and jami::SipTransport::stateToStr().

Here is the call graph for this function:

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