I made this kind of patch and it seems to work in my tests, but I may have missed something.

unsigned int node_in_set(struct rtpp_node *node, struct rtpp_set *set) {
	struct rtpp_node *current = set->rn_first;
	while (current) {
		if (current->idx == node->idx) return 1;
		current = current->rn_next;
	}
	return 0;
}
static struct rtpp_node * select_rtpp_node(...) {
...
       // lookup node
	node = select_rtpp_node_old(callid, viabranch, do_test, op);

	// check node
	if (!node || (node_in_set(node, active_rtpp_set) == 0)) {
        ...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.