Browse code

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

david authored on 12/07/2021 09:18:25 • Henning Westerholt committed on 13/07/2021 13:01:15
Showing 1 changed files
... ...
@@ -3343,11 +3343,12 @@ select_rtpp_node(str callid, str viabranch, int do_test, struct rtpp_node **quer
3343 3343
 		if (node->rn_recheck_ticks == RTPENGINE_MAX_RECHECK_TICKS) {
3344 3344
 			LM_DBG("node=%.*s for calllen=%d callid=%.*s is disabled(permanent) (probably still UP)! Return it\n",
3345 3345
 				node->rn_url.len, node->rn_url.s, callid.len, callid.len, callid.s);
3346
+			return node;
3346 3347
 		} else {
3347 3348
 			LM_DBG("node=%.*s for calllen=%d callid=%.*s is disabled, either broke or timeout disabled! Return it\n",
3348 3349
 				node->rn_url.len, node->rn_url.s, callid.len, callid.len, callid.s);
3349 3350
 		}
3350
-		return node;
3351
+		/*return node;*/
3351 3352
 	}
3352 3353
 
3353 3354
 	return NULL;