<p>I made this kind of patch and it seems to work in my tests, but I may have missed something.</p>
<pre><code>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;
}
</code></pre>
<pre><code>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)) {
...
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2039?email_source=notifications&email_token=ABO7UZIZ4EKS73OT3N45KY3QF2ZCNA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45RLFA#issuecomment-523965844">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLA4W2MXNEY5T4RWE3QF2ZCNANCNFSM4IN3G6LA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZLSXXFYINGZLIQ2JT3QF2ZCNA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45RLFA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2039?email_source=notifications\u0026email_token=ABO7UZIZ4EKS73OT3N45KY3QF2ZCNA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45RLFA#issuecomment-523965844",
"url": "https://github.com/kamailio/kamailio/issues/2039?email_source=notifications\u0026email_token=ABO7UZIZ4EKS73OT3N45KY3QF2ZCNA5CNFSM4IN3G6LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45RLFA#issuecomment-523965844",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>