Ring Daemon 16.0.0
Loading...
Searching...
No Matches
sip_utils.h File Reference
Include dependency graph for sip_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jami::sip_utils::PJDialogLock
 
class  jami::sip_utils::PjsipErrorCategory
 PjsipErrorCategory - a PJSIP error category for std::error_code. More...
 
class  jami::sip_utils::PjsipFailure
 PJSIP related exception Based on std::system_error with code() returning std::error_code with PjsipErrorCategory category. More...
 

Namespaces

namespace  jami
 
namespace  jami::sip_utils
 
namespace  jami::sip_utils::SIP_METHODS
 

Functions

void jami::sip_utils::addContactHeader (const std::string &contactHdr, pjsip_tx_data *tdata)
 
void jami::sip_utils::addUserAgentHeader (const std::string &userAgent, pjsip_tx_data *tdata)
 
constexpr std::string_view jami::sip_utils::as_view (const pj_str_t &str) noexcept
 
const pj_str_t jami::sip_utils::CONST_PJ_STR (const std::string &str) noexcept
 
constexpr pj_str_t jami::sip_utils::CONST_PJ_STR (const std::string_view &str) noexcept
 
template<typename T , std::size_t N>
constexpr const pj_str_t jami::sip_utils::CONST_PJ_STR (T(&a)[N]) noexcept
 
pjsip_route_hdrjami::sip_utils::createRouteSet (const std::string &route, pj_pool_t *hdr_pool)
 
std::string jami::sip_utils::fetchHeaderValue (pjsip_msg *msg, const std::string &field)
 Helper function to parser header from incoming sip messages.
 
std::string_view jami::sip_utils::getHostFromUri (std::string_view uri)
 
static constexpr const charjami::sip_utils::getKeyExchangeName (KeyExchangeProtocol kx)
 
static KeyExchangeProtocol jami::sip_utils::getKeyExchangeProtocol (std::string_view name)
 
std::vector< std::string > jami::sip_utils::getPeerAllowMethods (const pjsip_rx_data *rdata)
 
std::string_view jami::sip_utils::getPeerUserAgent (const pjsip_rx_data *rdata)
 
void jami::sip_utils::logMessageHeaders (const pjsip_hdr *hdr_list)
 
std::string jami::sip_utils::parseDisplayName (const pjsip_contact_hdr *header)
 
std::string jami::sip_utils::parseDisplayName (const pjsip_from_hdr *header)
 
std::string jami::sip_utils::parseDisplayName (const pjsip_name_addr *sip_name_addr)
 
std::string jami::sip_utils::sip_strerror (pj_status_t code)
 
static std::unique_ptr< pj_pool_t, decltype(pj_pool_release)& > jami::sip_utils::smart_alloc_pool (pjsip_endpoint *endpt, const char *const name, pj_size_t initial, pj_size_t inc)
 
void jami::sip_utils::sockaddr_to_host_port (pj_pool_t *pool, pjsip_host_port *host_port, const pj_sockaddr *addr)
 
std::string jami::sip_utils::streamId (const std::string &callId, std::string_view label)
 
std::string_view jami::sip_utils::stripSipUriPrefix (std::string_view sipUri)
 

Variables

constexpr std::string_view jami::sip_utils::DEFAULT_AUDIO_STREAMID = "audio_0"
 
static constexpr int jami::sip_utils::DEFAULT_AUTO_SELECT_PORT {0}
 
static constexpr int jami::sip_utils::DEFAULT_SIP_PORT {5060}
 
static constexpr int jami::sip_utils::DEFAULT_SIP_TLS_PORT {5061}
 
constexpr std::string_view jami::sip_utils::DEFAULT_VIDEO_STREAMID = "video_0"
 
constexpr std::string_view jami::sip_utils::SIP_METHODS::INFO = "INFO"sv
 
constexpr std::string_view jami::sip_utils::SIP_METHODS::MESSAGE = "MESSAGE"sv
 
constexpr std::string_view jami::sip_utils::SIP_METHODS::NOTIFY = "NOTIFY"sv
 
constexpr std::string_view jami::sip_utils::SIP_METHODS::OPTIONS = "OPTIONS"sv
 
static constexpr int jami::sip_utils::POOL_TP_INC {512}
 
static constexpr int jami::sip_utils::POOL_TP_INIT {512}
 
constexpr std::string_view jami::sip_utils::SIP_METHODS::PUBLISH = "PUBLISH"sv
 
constexpr std::string_view jami::sip_utils::SIP_METHODS::REFER = "REFER"sv
 
static constexpr int jami::sip_utils::TRANSPORT_INFO_LENGTH {64}