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)) { ... ```