<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta name="Generator" content="Kopano WebApp v3.5.12.2482+1427.1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>RE: [SR-Users] utility function to check if ip address is private?</title>
</head>
<body>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt; padding: 0; margin: 0;"><br /></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt; padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;">You can use :</span></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt; padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><br /></span></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt; padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;">is_ip_rfc1918(variable)<br /></span></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt; padding: 0; margin: 0;"><br /></p>
<div>
<pre style="white-space: pre-wrap; word-wrap: break-word;">--------------------------------<br />Ángel Elena Medina _o)<br />craem@craem.net / \\<br />http://diablo.craem.net _(___V<br />@craem_<br />www.linkedin.com/in/angel-elena-medina<br />--------------------------------<br />Kopano Webapp.</pre>
</div>
<p style="padding: 0; margin: 0; min-height: 10pt; font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt;"><br /></p>
<p style="padding: 0; margin: 0; min-height: 10pt; font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt;"><br /></p>
<blockquote style="border-left: 2px solid #325FBA; padding-left: 5px; margin: 0px 5px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt;">-----Original message-----<br /><span><strong>From:</strong> Juha Heinanen <jh@tutpro.com></span><br /><span><strong>Sent:</strong> Wednesday 18th November 2020 10:34</span><br /><span><strong>To:</strong> miconda@gmail.com</span><br /><span><strong>Cc:</strong> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; users@lists.kamailio.org</span><br /><span><strong>Subject:</strong> Re: [SR-Users] utility function to check if ip address is private?</span><br /><br /></span>
<div>
<pre style="white-space: pre-wrap; word-wrap: break-word;">But these could be used:<br /><br /> detailed_ip_type (ip, result)<br /> detailed_ipv4_type (ip, result)<br /> detailed_ipv6_type (ip, result)<br /><br />-- Juha<br /><br />_______________________________________________<br />Kamailio (SER) - Users Mailing List<br />sr-users@lists.kamailio.org<br />https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br /></pre>
</div>
</blockquote>
</body>
</html>