Module: kamailio Branch: master Commit: 97620f9ed633e8e5e9d719cb023e60a890ebb3f8 URL: https://github.com/kamailio/kamailio/commit/97620f9ed633e8e5e9d719cb023e60a8...
Author: david you@example.com Committer: Henning Westerholt hw@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/97620f9ed633e8e5e9d719cb023e60a8... Patch: https://github.com/kamailio/kamailio/commit/97620f9ed633e8e5e9d719cb023e60a8...
---
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;