Skip to content
Snippets Groups Projects
Commit b7a14330 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

Merge branch 'fix_account_crasher' into account_id_in_treestore

parents e3a19304 54c9e6e0
Branches
Tags
No related merge requests found
...@@ -225,7 +225,7 @@ pj_status_t SipTransport::createStunResolver(pj_str_t serverName, pj_uint16_t po ...@@ -225,7 +225,7 @@ pj_status_t SipTransport::createStunResolver(pj_str_t serverName, pj_uint16_t po
return status; return status;
} }
pj_status_t SipTransport::destroyStunResolver(const std::string serverName) pj_status_t SipTransport::destroyStunResolver(const std::string &serverName)
{ {
std::map<std::string, pj_stun_sock *>::iterator it; std::map<std::string, pj_stun_sock *>::iterator it;
it = stunSocketMap_.find(serverName); it = stunSocketMap_.find(serverName);
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#define SIPTRANSPORT_H_ #define SIPTRANSPORT_H_
#include <string> #include <string>
#include <vector>
#include <pjsip.h> #include <pjsip.h>
#include <pjlib.h> #include <pjlib.h>
...@@ -40,16 +41,16 @@ ...@@ -40,16 +41,16 @@
#include <pjlib-util.h> #include <pjlib-util.h>
#include <pjnath.h> #include <pjnath.h>
#include <pjnath/stun_config.h> #include <pjnath/stun_config.h>
#include "noncopyable.h"
#include "sipaccount.h" class SIPAccount;
class SipTransport { class SipTransport {
public: public:
SipTransport(pjsip_endpoint *endpt, pj_caching_pool *cp, pj_pool_t *pool); SipTransport(pjsip_endpoint *endpt, pj_caching_pool *cp, pj_pool_t *pool);
~SipTransport(); ~SipTransport();
static std::string getSIPLocalIP(void); static std::string getSIPLocalIP();
/** /**
* List all the interfaces on the system and return * List all the interfaces on the system and return
...@@ -59,7 +60,7 @@ class SipTransport { ...@@ -59,7 +60,7 @@ class SipTransport {
* of interface name available on all of the interfaces on * of interface name available on all of the interfaces on
* the system. * the system.
*/ */
static std::vector<std::string> getAllIpInterfaceByName(void); static std::vector<std::string> getAllIpInterfaceByName();
/** /**
* List all the interfaces on the system and return * List all the interfaces on the system and return
...@@ -101,7 +102,7 @@ class SipTransport { ...@@ -101,7 +102,7 @@ class SipTransport {
*/ */
pj_status_t createStunResolver(pj_str_t serverName, pj_uint16_t port); pj_status_t createStunResolver(pj_str_t serverName, pj_uint16_t port);
pj_status_t destroyStunResolver(const std::string serverName); pj_status_t destroyStunResolver(const std::string &serverName);
/** /**
* General Sip transport creation method according to the * General Sip transport creation method according to the
...@@ -110,7 +111,7 @@ class SipTransport { ...@@ -110,7 +111,7 @@ class SipTransport {
*/ */
void createSipTransport(SIPAccount *account); void createSipTransport(SIPAccount *account);
void createDefaultSipUdpTransport(void); void createDefaultSipUdpTransport();
/** /**
* Create SIP UDP transport from account's setting * Create SIP UDP transport from account's setting
...@@ -176,6 +177,7 @@ class SipTransport { ...@@ -176,6 +177,7 @@ class SipTransport {
void findLocalAddressFromTransport(pjsip_transport *transport, pjsip_transport_type_e transportType, std::string &address, std::string &port) const; void findLocalAddressFromTransport(pjsip_transport *transport, pjsip_transport_type_e transportType, std::string &address, std::string &port) const;
private: private:
NON_COPYABLE(SipTransport);
/** /**
* UDP Transports are stored in this map in order to retreive them in case * UDP Transports are stored in this map in order to retreive them in case
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment