Module: kamailio
Branch: master
Commit: d85096f56f1d94b70f27978041d5ce574b7650de
URL:
https://github.com/kamailio/kamailio/commit/d85096f56f1d94b70f27978041d5ce5…
Author: Stefan Mititelu <stefan-cristian.mititelu(a)1and1.ro>
Committer: Henning Westerholt <hw(a)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/d85096f56f1d94b70f27978041d5ce5…
Patch:
https://github.com/kamailio/kamailio/commit/d85096f56f1d94b70f27978041d5ce5…
---
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);
}