From 55d3577c105cb827ff0befeb6cd3cfe66eeb25f4 Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Thu, 18 Dec 2014 22:30:36 -0500 Subject: [PATCH] sipcall: remove unneeded memory pool Refs #62797 Change-Id: Iad49c0b44038dce012422e641d4bd8f881a97dfc --- daemon/src/sip/sipcall.cpp | 9 +-------- daemon/src/sip/sipcall.h | 14 -------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/daemon/src/sip/sipcall.cpp b/daemon/src/sip/sipcall.cpp index 53a0d31c71..f0cec806df 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 5b24b7c437..2fe6a312be 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 */ -- GitLab