|
Ring Daemon
|
Manages the transports and receive callbacks from PJSIP. More...
#include <siptransport.h>

Public Member Functions | |
| std::shared_ptr< SipTransport > | addTransport (pjsip_transport *) |
| std::shared_ptr< SipTransport > | getChanneledTransport (const std::shared_ptr< SIPAccountBase > &account, const std::shared_ptr< dhtnet::ChannelSocket > &socket, onShutdownCb &&cb) |
| std::shared_ptr< TlsListener > | getTlsListener (const dhtnet::IpAddr &, const pjsip_tls_setting *) |
| std::shared_ptr< SipTransport > | getTlsTransport (const std::shared_ptr< TlsListener > &, const dhtnet::IpAddr &remote, const std::string &remote_name={}) |
| std::shared_ptr< SipTransport > | getUdpTransport (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 () | |
Manages the transports and receive callbacks from PJSIP.
Definition at line 146 of file siptransport.h.
| jami::SipTransportBroker::SipTransportBroker | ( | pjsip_endpoint * | endpt | ) |
Definition at line 174 of file siptransport.cpp.
| jami::SipTransportBroker::~SipTransportBroker | ( | ) |
Definition at line 178 of file siptransport.cpp.
References JAMI_DEBUG, and shutdown().

| std::shared_ptr< SipTransport > jami::SipTransportBroker::addTransport | ( | pjsip_transport * | t | ) |
Definition at line 231 of file siptransport.cpp.
References jami::emitSignal().

| 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 374 of file siptransport.cpp.
References jami::emitSignal().

| std::shared_ptr< TlsListener > jami::SipTransportBroker::getTlsListener | ( | const dhtnet::IpAddr & | ipAddress, |
| const pjsip_tls_setting * | settings | ||
| ) |
Definition at line 316 of file siptransport.cpp.
References jami::emitSignal(), JAMI_DEBUG, JAMI_ERROR, RETURN_IF_FAIL, and jami::sip_utils::sip_strerror().

| 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 332 of file siptransport.cpp.
References jami::emitSignal(), JAMI_DEBUG, JAMI_ERROR, and jami::sip_utils::sip_strerror().

| std::shared_ptr< SipTransport > jami::SipTransportBroker::getUdpTransport | ( | const dhtnet::IpAddr & | ipAddress | ) |
Definition at line 266 of file siptransport.cpp.
References jami::emitSignal(), JAMI_DEBUG, and JAMI_WARNING.

| void jami::SipTransportBroker::shutdown | ( | ) |
Start graceful shutdown procedure for all transports.
Definition at line 254 of file siptransport.cpp.
References jami::emitSignal().
Referenced by ~SipTransportBroker().

| void jami::SipTransportBroker::transportStateChanged | ( | pjsip_transport * | tp, |
| pjsip_transport_state | state, | ||
| const pjsip_transport_state_info * | info | ||
| ) |
Definition at line 189 of file siptransport.cpp.
References jami::emitSignal(), JAMI_DEBUG, and jami::SipTransport::stateToStr().
