[sr-dev] git:5.1:bf6468f7: rtpengine: fixed rtpp_node permanent deletion causing PDD

Victor Seva linuxmaniac at torreviejawireless.org
Wed Jul 25 09:47:58 CEST 2018


Module: kamailio
Branch: 5.1
Commit: bf6468f7a4a54600e04dc6fd8aab537bde5ee464
URL: https://github.com/kamailio/kamailio/commit/bf6468f7a4a54600e04dc6fd8aab537bde5ee464

Author: Muhammad Zaka <muhammad.zaka at synety.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2018-07-25T09:47:17+02:00

rtpengine: fixed rtpp_node permanent deletion causing PDD

rtpp_node->rn_recheck_ticks was never set this means in-memory rtpengine were
never permanently deletion causing PDD for the calls requiring rtpengine

(cherry picked from commit 0771960358b6450af8e1f75f838915f366f04a95)

---

Modified: src/modules/rtpengine/rtpengine.c

---

Diff:  https://github.com/kamailio/kamailio/commit/bf6468f7a4a54600e04dc6fd8aab537bde5ee464.diff
Patch: https://github.com/kamailio/kamailio/commit/bf6468f7a4a54600e04dc6fd8aab537bde5ee464.patch

---

diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index f2ca1a9f2e..21f981080d 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -450,7 +450,8 @@ static int is_queried_node(struct rtpp_node *node, struct rtpp_node **queried_no
 int rtpengine_delete_node(struct rtpp_node *rtpp_node)
 {
 	rtpp_node->rn_displayed = 0;
-	rtpp_node->rn_disabled = RTPENGINE_MAX_RECHECK_TICKS;
+	rtpp_node->rn_disabled = 1;
+	rtpp_node->rn_recheck_ticks = RTPENGINE_MAX_RECHECK_TICKS;
 
 	return 1;
 }




More information about the sr-dev mailing list