[sr-dev] [kamailio/kamailio] rtpengine module set_rtpengine_set(set1, set2) issue (#2039)
juha-h
notifications at github.com
Thu Aug 22 17:54:14 CEST 2019
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 or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2039#issuecomment-523965844
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190822/ece04a03/attachment-0001.html>
More information about the sr-dev
mailing list