[OpenSIPS-Devel] [opensips] NAT Via Test Failure (#401)

Bogdan Andrei IANCU notifications at github.com
Mon Feb 2 12:03:28 CET 2015


Hi @jalung - you say that a failed DNS lookup (because of rev_dns) prevents other nat tests to be performed (when using multiple tests in the same function call) ??
The check_ip_address() function, does return 0 (if a match was found) or -1. But the loop in ClientNatTest() continues as time as the there is no match. So, I do not see how a failed dns lookup will stop the loop in the ClientNatTest().
In your case, there are 2 IPs checked (in check_ip_address) right ? if the reverse DNS fails, -1 will be return by function and the loop will continue in ClientNatTest(), trying the next tests.

Regards,
Bogdan

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/401#issuecomment-72439542
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150202/1f63eb38/attachment.htm>


More information about the Devel mailing list