Skip to content
Snippets Groups Projects
Commit 55d3577c authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

sipcall: remove unneeded memory pool

Refs #62797

Change-Id: Iad49c0b44038dce012422e641d4bd8f881a97dfc
parent d149220b
No related branches found
No related tags found
No related merge requests found
...@@ -70,8 +70,6 @@ getSettings() ...@@ -70,8 +70,6 @@ getSettings()
} }
#endif #endif
static const int INITIAL_SIZE = 16384;
static const int INCREMENT_SIZE = INITIAL_SIZE;
static constexpr int DEFAULT_ICE_INIT_TIMEOUT {10}; // seconds static constexpr int DEFAULT_ICE_INIT_TIMEOUT {10}; // seconds
static constexpr int DEFAULT_ICE_NEGO_TIMEOUT {60}; // seconds static constexpr int DEFAULT_ICE_NEGO_TIMEOUT {60}; // seconds
...@@ -134,11 +132,8 @@ SIPCall::SIPCall(SIPAccountBase& account, const std::string& id, Call::CallType ...@@ -134,11 +132,8 @@ SIPCall::SIPCall(SIPAccountBase& account, const std::string& id, Call::CallType
// The ID is used to associate video streams to calls // The ID is used to associate video streams to calls
, videortp_(id, getSettings()) , videortp_(id, getSettings())
#endif #endif
, pool_(pj_pool_create(&getSIPVoIPLink()->getCachingPool()->factory,
id.c_str(), INITIAL_SIZE, INCREMENT_SIZE, NULL))
, sdp_(new Sdp(id)) , sdp_(new Sdp(id))
{ {}
}
SIPCall::~SIPCall() SIPCall::~SIPCall()
{ {
...@@ -150,8 +145,6 @@ SIPCall::~SIPCall() ...@@ -150,8 +145,6 @@ SIPCall::~SIPCall()
SFL_WARN("Call was not properly removed from invite callbacks"); SFL_WARN("Call was not properly removed from invite callbacks");
inv->mod_data[mod_ua_id] = nullptr; inv->mod_data[mod_ua_id] = nullptr;
} }
pj_pool_release(pool_);
} }
void void
......
...@@ -53,8 +53,6 @@ ...@@ -53,8 +53,6 @@
#include <memory> #include <memory>
struct pjsip_evsub; struct pjsip_evsub;
struct pj_caching_pool;
struct pj_pool_t;
struct pjsip_inv_session; struct pjsip_inv_session;
class Sdp; class Sdp;
...@@ -122,13 +120,6 @@ class SIPCall : public Call ...@@ -122,13 +120,6 @@ class SIPCall : public Call
} }
#endif #endif
/**
* Return the local memory pool for this call
*/
pj_pool_t *getMemoryPool() {
return pool_;
}
/** /**
* The invite session to be reused in case of transfer * The invite session to be reused in case of transfer
*/ */
...@@ -243,11 +234,6 @@ class SIPCall : public Call ...@@ -243,11 +234,6 @@ class SIPCall : public Call
*/ */
std::shared_ptr<SipTransport> transport_ {}; std::shared_ptr<SipTransport> transport_ {};
/**
* The pool to allocate memory, released once call hang up
*/
pj_pool_t *pool_;
/** /**
* The SDP session * The SDP session
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment