Hi Daniel,
I reviewed the code and unfortunately, it does not cover the case when
- enable_double_rr=1 - both UA are using the same IP and the same port and there is only one route inserted by record_route()
To handle this case, see the patch I suggest below. Alternatively, we could set enable_double_rr=2 I guess. What is your opinion ?
[loose.diff.txt](https://github.com/kamailio/kamailio/files/1716237/loose.diff.txt)