<p>Hi <a href="https://github.com/jalung" class="user-mention">@jalung</a> - 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) ??<br>
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().<br>
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.</p>
<p>Regards,<br>
Bogdan</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/401#issuecomment-72439542">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcifpUMnzmlLMbdkPpfF2bFdaS67whks5nn1EAgaJpZM4DOPEM.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/401#issuecomment-72439542"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>