But these could be used:
detailed_ip_type (ip, result)
detailed_ipv4_type (ip, result)
detailed_ipv6_type (ip, result)
-- Juha
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
Daniel-Constantin Mierla writes:
> this one:
> https://www.kamailio.org/docs/modules/stable/modules/ipops.html#ipops.f.is_ip_rfc1918
If it is really is based on RFC1918, then I doubt that it would handle
IPv6 private addresses, since when that RFC was written, IPv6 didn't
exist.
-- Juha
I looked in the wiki for a utility function that would check if given ip
address is private, but didn't find one. Does it exist?
-- Juha
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
You can use :
is_ip_rfc1918(variable)
Ángel Elena Medina _o)
cr...@craem.net / \\
http://diablo.craem.net _(___V
@craem_
www.linkedin.com/in/angel-elena-medina
Kopano Webapp.
-Original message-
On 18.11.20 10:17, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> this one:
>> https://www.kamailio.org/docs/modules/stable/modules/ipops.html#ipops.f.is_ip_rfc1918
> If it is really is based on RFC1918, then I doubt that it would handle
> IPv6 private addresses, since when that RFC
Hello,
this one:
*
https://www.kamailio.org/docs/modules/stable/modules/ipops.html#ipops.f.is_ip_rfc1918
I haven't checked if tests the newer ranges (e.g., carrier grade nat).
The nat_uac_test() should have the recent ranges for non-routable ip
addresses, just in case one wants to double