<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi, Terrance!<br>
<br>
No, OpenSIPS does not provide such function or variable afaik.<br>
However, probably you need to test against a limited range of
private addresses, so you can simply check a subclass, something
like $dd =~ "192\.168\."<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 03/08/2015 03:25 AM, Terrance Devor
wrote:<br>
</div>
<blockquote
cite="mid:CA+w+2f9fs_Q4ypb2YxnuRMnTpnRifnxuWc0WO=FKn8bEsTDvGQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello Everyone,
<div><br>
</div>
<div style="">Our opensips is in a nat'ed environment , and we
need a way to test if the</div>
<div style="">destination ip (ie, where the next message is
going to be sent) is public or</div>
<div style="">private. Is there a variable, or even better a
function that can test for this.</div>
<div style=""><br>
</div>
<div style="">Kind Regards,</div>
<div style=""><br>
</div>
<div style="">Terrance</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>