Hi Sunil,

You can use the {ip.matches} transformation to check the IP against the RFC1918 subnets
    https://opensips.org/Documentation/Script-Tran-3-0#toc77

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 05/08/2019 08:49 AM, Sunil More wrote:
Hi All,

I am using a setup on GCP with advertised IP address. It will be used as an edge proxy to send/receive calls. I have a VPN client connecting directly to the GCP instance on its private interface.

I want to forward inbound calls to clients. While doing this I want to identify if the forwarding IP is private IP (RFC1918) or public IP and likewise use the advertised IP address. How can I do this ?

Regards,
Sunil More
Ph. 919503338275



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to