[sr-dev] git:master:d85096f5: rtpengine: Don't recheck node if disabled permanently

Henning Westerholt hw at skalatan.de
Thu Oct 21 11:47:39 CEST 2021


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

Author: Stefan Mititelu <stefan-cristian.mititelu at 1and1.ro>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2021-10-21T11:47:33+02:00

rtpengine: Don't recheck node if disabled permanently

---

Modified: src/modules/rtpengine/rtpengine.c

---

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

---

diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 6db8da5524..738e55d312 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -2707,7 +2707,8 @@ static bencode_item_t *rtpp_function_call(bencode_buffer_t *bencbuf, struct sip_
 		}
 
 		cp = send_rtpp_command(node, ng_flags.dict, &ret);
-		if (cp == NULL) {
+		/* if node is disabled permanent, don't recheck it later */
+		if (cp == NULL && node->rn_recheck_ticks != RTPENGINE_MAX_RECHECK_TICKS) {
 			node->rn_disabled = 1;
 			node->rn_recheck_ticks = get_ticks() + cfg_get(rtpengine,rtpengine_cfg,rtpengine_disable_tout);
 		}




More information about the sr-dev mailing list