[sr-dev] git:master:97620f9e: rtpengine: On rtpengine_allow_op, return node only if rtpengine is manually disabled

Henning Westerholt hw at skalatan.de
Tue Jul 13 15:01:20 CEST 2021


Module: kamailio
Branch: master
Commit: 97620f9ed633e8e5e9d719cb023e60a890ebb3f8
URL: https://github.com/kamailio/kamailio/commit/97620f9ed633e8e5e9d719cb023e60a890ebb3f8

Author: david <you at example.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2021-07-13T15:01:15+02:00

rtpengine: On rtpengine_allow_op, return node only if rtpengine is manually disabled

---

Modified: src/modules/rtpengine/rtpengine.c

---

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

---

diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 6266520578..1777ebc98f 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -3343,11 +3343,12 @@ select_rtpp_node(str callid, str viabranch, int do_test, struct rtpp_node **quer
 		if (node->rn_recheck_ticks == RTPENGINE_MAX_RECHECK_TICKS) {
 			LM_DBG("node=%.*s for calllen=%d callid=%.*s is disabled(permanent) (probably still UP)! Return it\n",
 				node->rn_url.len, node->rn_url.s, callid.len, callid.len, callid.s);
+			return node;
 		} else {
 			LM_DBG("node=%.*s for calllen=%d callid=%.*s is disabled, either broke or timeout disabled! Return it\n",
 				node->rn_url.len, node->rn_url.s, callid.len, callid.len, callid.s);
 		}
-		return node;
+		/*return node;*/
 	}
 
 	return NULL;




More information about the sr-dev mailing list