Commit 55d3577c authored by Guillaume Roguez's avatar Guillaume Roguez

sipcall: remove unneeded memory pool

Refs #62797

Change-Id: Iad49c0b44038dce012422e641d4bd8f881a97dfc
parent d149220b
......@@ -70,8 +70,6 @@ getSettings()
}
#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_NEGO_TIMEOUT {60}; // seconds
......@@ -134,11 +132,8 @@ SIPCall::SIPCall(SIPAccountBase& account, const std::string& id, Call::CallType
// The ID is used to associate video streams to calls
, videortp_(id, getSettings())
#endif
, pool_(pj_pool_create(&getSIPVoIPLink()->getCachingPool()->factory,
id.c_str(), INITIAL_SIZE, INCREMENT_SIZE, NULL))
, sdp_(new Sdp(id))
{
}
{}
SIPCall::~SIPCall()
{
......@@ -150,8 +145,6 @@ SIPCall::~SIPCall()
SFL_WARN("Call was not properly removed from invite callbacks");
inv->mod_data[mod_ua_id] = nullptr;
}
pj_pool_release(pool_);
}
void
......
......@@ -53,8 +53,6 @@
#include <memory>
struct pjsip_evsub;
struct pj_caching_pool;
struct pj_pool_t;
struct pjsip_inv_session;
class Sdp;
......@@ -122,13 +120,6 @@ class SIPCall : public Call
}
#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
*/
......@@ -243,11 +234,6 @@ class SIPCall : public Call
*/
std::shared_ptr<SipTransport> transport_ {};
/**
* The pool to allocate memory, released once call hang up
*/
pj_pool_t *pool_;
/**
* The SDP session
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment