diff --git a/daemon/src/sip/sipcall.cpp b/daemon/src/sip/sipcall.cpp index 53a0d31c71b0fc7d421d89ca6172be5491c5e23b..f0cec806df70bf7af210a9ebb132a7def99be6d1 100644 --- a/daemon/src/sip/sipcall.cpp +++ b/daemon/src/sip/sipcall.cpp @@ -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 diff --git a/daemon/src/sip/sipcall.h b/daemon/src/sip/sipcall.h index 5b24b7c4376a31d6dc62854f6e4e6bc66a2c2f14..2fe6a312bee630d0a4b3c8181265087588471b24 100644 --- a/daemon/src/sip/sipcall.h +++ b/daemon/src/sip/sipcall.h @@ -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 */